F ====================================================================== FAIL: Doctest: ../../nltk/test/data.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/data.doctest File "/Volumes/Data/nltk/trunk/nltk/nltk/test/data.doctest", line 0, in doctest ---------------------------------------------------------------------- File "/Volumes/Data/nltk/trunk/nltk/nltk/test/data.doctest", line 232, in ../../nltk/test/data.doctest Failed example: formulas = nltk.data.load('grammars/background1.fol') 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/data.py", line 446, in load resource_val = sem.parse_fol(_open(resource_url).read()) File "/Volumes/Data/nltk/trunk/nltk/nltk/sem/util.py", line 187, in parse_fol raise ValueError, 'Unable to parse line %s: %s' % (linenum, line) ValueError: Unable to parse line 11: all x. ((boxerdog x) implies (dog x)) ---------------------------------------------------------------------- File "/Volumes/Data/nltk/trunk/nltk/nltk/test/data.doctest", line 233, in ../../nltk/test/data.doctest Failed example: for f in formulas: print str(f) 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 NameError: name 'formulas' is not defined ---------------------------------------------------------------------- File "/Volumes/Data/nltk/trunk/nltk/nltk/test/data.doctest", line 259, in ../../nltk/test/data.doctest Failed example: for i, url in enumerate(urls): nltk.data.retrieve(url, 'toy-%d.cfg' % i) # doctest: +ELLIPSIS Differences (unified diff with -expected +actual): @@ -1,4 +1,4 @@ Retrieving 'http://nltk.org/examples/parse/toy.cfg', saving to 'toy-0.cfg' -Retrieving 'file:/.../data/grammars/toy.cfg', saving to 'toy-1.cfg' +Retrieving 'file:/usr/share/nltk_data/grammars/toy.cfg', saving to 'toy-1.cfg' Retrieving 'nltk:grammars/toy.cfg', saving to 'toy-2.cfg' Retrieving 'grammars/toy.cfg', saving to 'toy-3.cfg' ---------------------------------------------------------------------- Ran 1 test in 7.639s FAILED (failures=1)