Permalink
Browse files

Merge pull request #1 from unnali/master

NLTK 2.0.2.
  • Loading branch information...
2 parents 45b3cb8 + c3880ea commit e778c39e3ad5f68d3de35cc7ca681db596385c13 @myfreeweb committed Sep 10, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 generator.py
  2. +1 −1 requirements.txt
View
2 generator.py
@@ -18,7 +18,7 @@ def __init__(self, dataset, capitalize=False):
self.words = words
self.model = nltk.Text(words)
estimator = lambda fdist, bins: LidstoneProbDist(fdist, 0.2)
- self._ngram_model = NgramModel(2, self.model, estimator)
+ self._ngram_model = NgramModel(2, self.model, estimator=estimator)
def raw_words(self, length=100):
"""Generates a list of words using an NLTK NgramModel."""
View
2 requirements.txt
@@ -2,7 +2,7 @@ PyYAML==3.10
distribute==0.6.24
hiredis==0.1.1
httplib2==0.7.4
-nltk==2.0.1rc4
+nltk==2.0.2
oauth2==1.5.211
python-twitter==0.8.2
redis==2.4.12

0 comments on commit e778c39

Please sign in to comment.