Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 739 by
jhaebe...@gmail.com: text3.generate() (from book)
generates an error
http://code.google.com/p/nltk/issues/detail?id=739
What version of NLTK are you using?
2.0.2
What steps will reproduce the problem? (e.g. include Python source code)
from nltk.book import *
text3.generate()
What is the expected output? What do you see instead?
Building ngram index...
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Utils\Python\lib\site-packages\nltk-2.0.2-py2.7-win32.egg\nltk\text.py",
line 382, in generate
self._trigram_model = NgramModel(3, self, estimator)
File "C:\Utils\Python\lib\site-packages\nltk-2.0.2-py2.7-win32.egg\nltk\model\ngram.py",
line 81, in __init__
assert(isinstance(pad_left, bool))
AssertionError
Please use labels and text to provide additional information.