F ====================================================================== FAIL: Doctest: ../../nltk/test/corpus.doctest ---------------------------------------------------------------------- Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py", line 2112, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for ../../nltk/test/corpus.doctest File "/Volumes/Data/nltk/trunk/nltk/nltk/test/corpus.doctest", line 0, in doctest ---------------------------------------------------------------------- File "/Volumes/Data/nltk/trunk/nltk/nltk/test/corpus.doctest", line 100, in ../../nltk/test/corpus.doctest Failed example: nltk.corpus.gutenberg.words() Expected: ['VOLUME', 'I', 'CHAPTER', 'I', 'Emma', 'Woodhouse', ...] Got: ['******', 'The', 'Project', 'Gutenberg', 'Etext', ...] ---------------------------------------------------------------------- File "/Volumes/Data/nltk/trunk/nltk/nltk/test/corpus.doctest", line 883, in ../../nltk/test/corpus.doctest Failed example: verbnet.classids()[:5] Expected: ['accompany-51_7', 'admire-31.2-1', 'admire-31_2', 'admit-65', 'adopt-93'] Got: ['accompany-51.7', 'admire-31.2', 'admire-31.2-1', 'admit-65', 'adopt-93'] ---------------------------------------------------------------------- File "/Volumes/Data/nltk/trunk/nltk/nltk/test/corpus.doctest", line 889, in ../../nltk/test/corpus.doctest Failed example: verbnet.classids('accept') Expected: ['approve-77', 'characterize-29.2-1-1', 'obtain-13_5_2'] Got: ['approve-77', 'characterize-29.2-1-1', 'obtain-13.5.2'] ---------------------------------------------------------------------- File "/Volumes/Data/nltk/trunk/nltk/nltk/test/corpus.doctest", line 1544, in ../../nltk/test/corpus.doctest Failed example: for corpus in (abc, genesis, inaugural, state_union, webtext, udhr): print corpus print ' ', `corpus.files()`[:60] print ' ', `corpus.words()[:10]`[:60] # doctest: +ELLIPSIS Differences (unified diff with -expected +actual): @@ -1,18 +1,18 @@ - + ('rural.txt', 'science.txt') ['PM', 'denies', 'knowledge', 'of', 'AWB', 'kickbacks', 'The - + ('english-kjv.txt', 'english-web.txt', 'finnish.txt', 'frenc ['In', 'the', 'beginning', 'God', 'created', 'the', 'heaven' - + ('1789-Washington.txt', '1793-Washington.txt', '1797-Adams.t ['Fellow', '-', 'Citizens', 'of', 'the', 'Senate', 'and', 'o - + ('1945-Truman.txt', '1946-Truman.txt', '1947-Truman.txt', '1 ['PRESIDENT', 'HARRY', 'S', '.', 'TRUMAN', "'", 'S', 'ADDRES - + ('overheard', 'pirates', 'singles', 'wine') ['White', 'guy', ':', 'So', ',', 'do', 'you', 'have', 'any', - + ('Abkhaz-Cyrillic+Abkh', 'Abkhaz-UTF8', 'Achehnese-Latin1', ['\xc0\xf3\xe0\xfe\xfb\xf2\xfa\xfb\xfe\xf1\xe0', '\xe8\xe7\x ---------------------------------------------------------------------- File "/Volumes/Data/nltk/trunk/nltk/nltk/test/corpus.doctest", line 1660, in ../../nltk/test/corpus.doctest Failed example: verbnet.classids(lemma='take') # doctest: +NORMALIZE_WHITESPACE Expected: ['bring-11_3', 'characterize-29_2', 'convert-26_6_2', 'cost-54_2', 'fit-54_3', 'performance-26.7-2', 'steal-10_5'] Got: ['bring-11.3', 'characterize-29.2', 'convert-26.6.2', 'cost-54.2', 'fit-54.3', 'performance-26.7-2', 'steal-10.5'] ---------------------------------------------------------------------- File "/Volumes/Data/nltk/trunk/nltk/nltk/test/corpus.doctest", line 1667, in ../../nltk/test/corpus.doctest Failed example: verbnet.classids(classid='admire-31_2') # subclasses Exception raised: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py", line 1212, in __run compileflags, 1) in test.globs File "", line 1, in File "/Volumes/Data/nltk/trunk/nltk/nltk/corpus/reader/verbnet.py", line 101, in classids xmltree = self.vnclass(classid) File "/Volumes/Data/nltk/trunk/nltk/nltk/corpus/reader/verbnet.py", line 123, in vnclass classid = self.longid(fileid_or_classid) File "/Volumes/Data/nltk/trunk/nltk/nltk/corpus/reader/verbnet.py", line 220, in longid raise ValueError('vnclass identifier %r not found' % shortid) ValueError: vnclass identifier 'admire-31_2' not found ---------------------------------------------------------------------- File "/Volumes/Data/nltk/trunk/nltk/nltk/test/corpus.doctest", line 1767, in ../../nltk/test/corpus.doctest Failed example: from nltk.utilities import LazySubsequence Exception raised: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/doctest.py", line 1212, in __run compileflags, 1) in test.globs File "", line 1, in ImportError: No module named utilities ---------------------------------------------------------------------- Ran 1 test in 655.433s FAILED (failures=1)