Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #1 from unnali/master

NLTK 2.0.2.
  • Loading branch information...
commit e778c39e3ad5f68d3de35cc7ca681db596385c13 2 parents 45b3cb8 + c3880ea
Greg V authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  generator.py
  2. +1 1  requirements.txt
2  generator.py
@@ -18,7 +18,7 @@ def __init__(self, dataset, capitalize=False):
18 18 self.words = words
19 19 self.model = nltk.Text(words)
20 20 estimator = lambda fdist, bins: LidstoneProbDist(fdist, 0.2)
21   - self._ngram_model = NgramModel(2, self.model, estimator)
  21 + self._ngram_model = NgramModel(2, self.model, estimator=estimator)
22 22
23 23 def raw_words(self, length=100):
24 24 """Generates a list of words using an NLTK NgramModel."""
2  requirements.txt
@@ -2,7 +2,7 @@ PyYAML==3.10
2 2 distribute==0.6.24
3 3 hiredis==0.1.1
4 4 httplib2==0.7.4
5   -nltk==2.0.1rc4
  5 +nltk==2.0.2
6 6 oauth2==1.5.211
7 7 python-twitter==0.8.2
8 8 redis==2.4.12

0 comments on commit e778c39

Please sign in to comment.
Something went wrong with that request. Please try again.