Commit 73917f89 by Steven Bird

removed error files

parent 7df1fb14
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/ccg.doctest", line 69, in ccg.doctest
Failed example:
for parse in parser.nbest_parse("you prefer that cake".split(),1):
chart.printCCGDerivation(parse)
for parse in parser.nbest_parse("that is the cake which you prefer".split(), 1):
chart.printCCGDerivation(parse) # doctest: +NORMALIZE_WHITESPACE
Expected:
you prefer that cake
NP ((S\NP)/NP) (NP/N) N
--------------------->B
((S\NP)/N)
--------------------------->
(S\NP)
--------------------------------<
S
that is the cake which you prefer
NP ((S\NP)/NP) (NP/N) N ((N\N)/(S/NP)) NP ((S\NP)/NP)
--------------------->B
((S\NP)/N)
------>T
(N/(N\N))
--------------------------->B
((S\NP)/(N\N))
------------------------------------------->B
((S\NP)/(S/NP))
----->T
(S/(S\NP))
------------------>B
(S/NP)
------------------------------------------------------------->
(S\NP)
-------------------------------------------------------------------<
S
Got:
you prefer that cake
NP ((S\NP)/NP) (NP/N) N
--------------------->B
((S\NP)/N)
--------------------------->
(S\NP)
--------------------------------<
S
that is the cake which you prefer
NP ((S\NP)/NP) (NP/N) N ((N\N)/(S/NP)) NP ((S\NP)/NP)
--------------------->B
((S\NP)/N)
------>T
(N/(N\N))
--------------------------->B
((S\NP)/(N\N))
----->T
(S/(S\NP))
------------------>B
(S/NP)
---------------------------------->
(N\N)
------------------------------------------------------------->
(S\NP)
-------------------------------------------------------------------<
S
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/ccg.doctest", line 118, in ccg.doctest
Failed example:
for parse in parser.nbest_parse(sent,1):
chart.printCCGDerivation(parse) # doctest: +NORMALIZE_WHITESPACE
Expected:
that is the dough which you will eat without cooking
NP ((S\NP)/NP) (NP/N) N ((N\N)/(S/NP)) NP ((S\NP)/VP) (VP/NP) ((VP\VP)/VP['ing']) (VP['ing']/NP)
--------------------->B
((S\NP)/N)
------->T
(N/(N\N))
----->T
(S/(S\NP))
------------------>B
(S/VP)
------------------------------------->B
((VP\VP)/NP)
----------------------------------------------<Sx
(VP/NP)
---------------------------------------------------------------->B
(S/NP)
-------------------------------------------------------------------------------->
(N\N)
--------------------------------------------------------------------------------------->
N
------------------------------------------------------------------------------------------------------------>
(S\NP)
------------------------------------------------------------------------------------------------------------------<
S
Got:
that is the dough which you will eat without cooking
NP ((S\NP)/NP) (NP/N) N ((N\N)/(S/NP)) NP ((S\NP)/VP) (VP/NP) ((VP\VP)/VP['ing']) (VP['ing']/NP)
--------------------->B
((S\NP)/N)
------->T
(N/(N\N))
---------------------------->B
((S\NP)/(N\N))
-------------------------------------------->B
((S\NP)/(S/NP))
----->T
(S/(S\NP))
------------------>B
(S/VP)
------------------------------------->B
((VP\VP)/NP)
----------------------------------------------<Sx
(VP/NP)
---------------------------------------------------------------->B
(S/NP)
------------------------------------------------------------------------------------------------------------>
(S\NP)
------------------------------------------------------------------------------------------------------------------<
S
.
\ No newline at end of file
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/chat80.doctest", line 172, in chat80.doctest
Failed example:
for answer in chat80.sql_query('corpora/city_database/city.db', q):
print "%-10s %4s" % answer
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest chat80.doctest[16]>", line 1, in <module>
for answer in chat80.sql_query('corpora/city_database/city.db', q):
File "/Users/sb/git/nltk/nltk/sem/chat80.py", line 420, in sql_query
connection = sqlite3.connect(path)
ValueError: database parameter must be string or APSW Connection object
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/chat80.doctest", line 205, in chat80.doctest
Failed example:
trees = cp.nbest_parse(query.split())
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest chat80.doctest[21]>", line 1, in <module>
trees = cp.nbest_parse(query.split())
AttributeError: 'FeatureGrammar' object has no attribute 'nbest_parse'
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/chat80.doctest", line 206, in chat80.doctest
Failed example:
answer = trees[0].node['SEM']
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest chat80.doctest[22]>", line 1, in <module>
answer = trees[0].node['SEM']
NameError: name 'trees' is not defined
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/chat80.doctest", line 207, in chat80.doctest
Failed example:
q = join(answer)
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest chat80.doctest[23]>", line 1, in <module>
q = join(answer)
NameError: name 'answer' is not defined
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/chat80.doctest", line 208, in chat80.doctest
Failed example:
print q
Expected:
SELECT City FROM city_table WHERE Country="china"
Got:
SELECT City, Population FROM city_table WHERE Country = 'china' and Population > 1000
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/chat80.doctest", line 210, in chat80.doctest
Failed example:
rows = chat80.sql_query('corpora/city_database/city.db', q)
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest chat80.doctest[25]>", line 1, in <module>
rows = chat80.sql_query('corpora/city_database/city.db', q)
File "/Users/sb/git/nltk/nltk/sem/chat80.py", line 420, in sql_query
connection = sqlite3.connect(path)
ValueError: database parameter must be string or APSW Connection object
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/chat80.doctest", line 211, in chat80.doctest
Failed example:
for r in rows: print "%s" % r,
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest chat80.doctest[26]>", line 1, in <module>
for r in rows: print "%s" % r,
NameError: name 'rows' is not defined
.
\ No newline at end of file
.
\ No newline at end of file
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/classify.doctest", line 106, in classify.doctest
Failed example:
nltk.classify.svm.demo()
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest classify.doctest[14]>", line 1, in <module>
nltk.classify.svm.demo()
AttributeError: 'module' object has no attribute 'svm'
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/classify.doctest", line 148, in classify.doctest
Failed example:
test_maxent(nltk.classify.MaxentClassifier.ALGORITHMS)
# doctest: +ELLIPSIS
Expected:
[Found megam: ...]
test[0] test[1] test[2] test[3]
p(x) p(y) p(x) p(y) p(x) p(y) p(x) p(y)
-----------------------------------------------------------------------
LBFGSB 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
GIS 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
IIS 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
Nelder-Mead 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
CG 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
BFGS 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
MEGAM 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
Powell 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
Got:
[Found megam: /usr/local/bin/megam.opt]
test[0] test[1] test[2] test[3]
p(x) p(y) p(x) p(y) p(x) p(y) p(x) p(y)
-----------------------------------------------------------------------
LBFGSB Error: ValueError('operands could not be broadcast together with shapes (18) (12) ',)
GIS 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
IIS 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
Nelder-Mead 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
CG Error: ValueError('operands could not be broadcast together with shapes (18) (12) ',)
BFGS Error: ValueError('operands could not be broadcast together with shapes (18) (12) ',)
MEGAM 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
TADM Error: LookupError("\n\n===========================================================================\n NLTK was unable to find the tadm executable! Use config_tadm() or\n set the TADM_DIR environment variable.\n\n >>> config_tadm('/path/to/tadm')\n\n For more information, on tadm, see:\n <http://tadm.sf.net>\n===========================================================================",)
Powell 0.16 0.84 0.46 0.54 0.41 0.59 0.76 0.24
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/classify.doctest", line 185, in classify.doctest
Failed example:
classifier = maxent.MaxentClassifier.train(
train, bernoulli=False, encoding=encoding, trace=0)
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest classify.doctest[21]>", line 2, in <module>
train, bernoulli=False, encoding=encoding, trace=0)
File "/Users/sb/git/nltk/nltk/classify/maxent.py", line 323, in train
gaussian_prior_sigma, **cutoffs)
File "/Users/sb/git/nltk/nltk/classify/maxent.py", line 1453, in train_maxent_classifier_with_scipy
model.fit(algorithm=algorithm)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/maxentropy/maxentropy.py", line 1026, in fit
return model.fit(self, self.K, algorithm)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/maxentropy/maxentropy.py", line 226, in fit
callback=callback)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/optimize/optimize.py", line 636, in fmin_cg
gfk = myfprime(x0)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/optimize/optimize.py", line 176, in function_wrapper
return function(x, *args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/maxentropy/maxentropy.py", line 420, in grad
G = self.expectations() - self.K
ValueError: operands could not be broadcast together with shapes (12) (8)
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/classify.doctest", line 188, in classify.doctest
Failed example:
classifier.batch_classify(test)
Expected:
['y', 'x']
Got:
['y', 'y']
.
\ No newline at end of file
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/collocations.doctest", line 21, in collocations.doctest
Failed example:
finder.nbest(bigram_measures.pmi, 10) # doctest: +NORMALIZE_WHITESPACE
Expected:
[('cutting', 'instrument'), ('sewed', 'fig'), ('sweet', 'savor'),
('Ben', 'Ammi'), ('appoint', 'overseers'), ('olive', 'leaf'),
('months', 'later'), ('remaining', 'silent'), ('seek', 'occasion'),
('leaf', 'plucked')]
Got:
[(u'Allon', u'Bacuth'), (u'Ashteroth', u'Karnaim'), (u'Ben', u'Ammi'), (u'En', u'Mishpat'), (u'Jegar', u'Sahadutha'), (u'Salt', u'Sea'), (u'Whoever', u'sheds'), (u'appoint', u'overseers'), (u'aromatic', u'resin'), (u'cutting', u'instrument')]
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/collocations.doctest", line 32, in collocations.doctest
Failed example:
finder.nbest(bigram_measures.pmi, 10) # doctest: +NORMALIZE_WHITESPACE
Expected:
[('Lahai', 'Roi'), ('gray', 'hairs'), ('Beer', 'Lahai'), ('Most', 'High'),
('ewe', 'lambs'), ('many', 'colors'), ('burnt', 'offering'),
('Paddan', 'Aram'), ('east', 'wind'), ('living', 'creature')]
Got:
[(u'Beer', u'Lahai'), (u'Lahai', u'Roi'), (u'gray', u'hairs'), (u'Most', u'High'), (u'ewe', u'lambs'), (u'many', u'colors'), (u'burnt', u'offering'), (u'Paddan', u'Aram'), (u'east', u'wind'), (u'living', u'creature')]
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/collocations.doctest", line 41, in collocations.doctest
Failed example:
finder.nbest(bigram_measures.pmi, 5) # doctest: +NORMALIZE_WHITESPACE
Expected:
[(('weekend', 'N'), ('duty', 'N')),
(('top', 'ADJ'), ('official', 'N')),
(('George', 'NP'), ('P.', 'NP')),
(('medical', 'ADJ'), ('intern', 'N')),
(('1962', 'NUM'), ("governor's", 'N'))]
Got:
[(('1,119', 'NUM'), ('votes', 'N')), (('1962', 'NUM'), ("governor's", 'N')), (('637', 'NUM'), ('E.', 'NP')), (('Alpharetta', 'NP'), ('prison', 'N')), (('Bar', 'N'), ('Association', 'N'))]
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/collocations.doctest", line 52, in collocations.doctest
Failed example:
finder.nbest(bigram_measures.pmi, 10) # doctest: +NORMALIZE_WHITESPACE
Expected:
[(':', '('), ('(', 'NUM'), ('NUM', ')'), (':', 'NUM'), (')', 'NUM'),
('-', 'WH'), ('VN', ':'), ('``', 'EX'), ('EX', 'MOD'), ('WH', 'VBZ')]
Got:
[(':', '('), ('(', 'NUM'), ('NUM', ')'), (':', 'NUM'), ('', 'WH'), (')', 'NUM'), ('VN', ':'), ('``', 'EX'), ('EX', 'MOD'), ('WH', 'VBZ')]
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/collocations.doctest", line 64, in collocations.doctest
Failed example:
finder.nbest(bigram_measures.likelihood_ratio, 10) # doctest: +NORMALIZE_WHITESPACE
Expected:
[('chief', 'chief'), ('hundred', 'years'), ('father', 'father'), ('lived', 'years'),
('years', 'father'), ('lived', 'father'), ('land', 'Egypt'), ('land', 'Canaan'),
('lived', 'hundred'), ('land', 'land')]
Got:
[(u'became', u'father'), (u'hundred', u'years'), (u'lived', u'years'), (u'father', u'became'), (u'years', u'became'), (u'land', u'Egypt'), (u'land', u'Canaan'), (u'lived', u'became'), (u'became', u'years'), (u'years', u'lived')]
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/collocations.doctest", line 181, in collocations.doctest
Failed example:
print '%0.2f' % bigram_measures.likelihood_ratio(110, (2552, 221), 31777)
Expected:
270.72
Got:
541.44
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/collocations.doctest", line 183, in collocations.doctest
Failed example:
print '%0.2f' % bigram_measures.likelihood_ratio(8, (13, 32), 31777)
Expected:
95.29
Got:
190.57
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/collocations.doctest", line 207, in collocations.doctest
Failed example:
print '%0.2f' % cont_bigram_measures.likelihood_ratio(8, 5, 24, 31740)
Expected:
95.29
Got:
190.57
.
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/data.doctest", line 41, in data.doctest
Failed example:
url.replace('\\', '/') # doctest: +ELLIPSIS
Expected:
'file:...toy.cfg'
Got:
"file:ZipFilePathPointer('/usr/share/nltk_data/grammars/sample_grammars.zip', 'sample_grammars/toy.cfg')"
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/data.doctest", line 43, in data.doctest
Failed example:
print nltk.data.load(url) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest data.doctest[6]>", line 1, in <module>
print nltk.data.load(url) # doctest: +ELLIPSIS
File "/Users/sb/git/nltk/nltk/data.py", line 589, in load
% resource_url)
ValueError: Could not determine format for file:ZipFilePathPointer('/usr/share/nltk_data/grammars/sample_grammars.zip', 'sample_grammars/toy.cfg') based on its file
extension; use the "format" argument to specify the format explicitly.
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/data.doctest", line 179, in data.doctest
Failed example:
str(path) # doctest: +ELLIPSIS
Expected:
'...rural.txt'
Got:
"ZipFilePathPointer('/usr/share/nltk_data/corpora/abc.zip', 'abc/rural.txt')"
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/data.doctest", line 256, in data.doctest
Failed example:
for i, url in enumerate(urls):
nltk.data.retrieve(url, 'toy-%d.cfg' % i) # doctest: +ELLIPSIS
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest data.doctest[47]>", line 2, in <module>
nltk.data.retrieve(url, 'toy-%d.cfg' % i) # doctest: +ELLIPSIS
File "/Users/sb/git/nltk/nltk/data.py", line 480, in retrieve
infile = _open(resource_url)
File "/Users/sb/git/nltk/nltk/data.py", line 676, in _open
return open(path, 'rb')
IOError: [Errno 2] No such file or directory: "ZipFilePathPointer('/usr/share/nltk_data/grammars/sample_grammars.zip', 'sample_grammars/toy.cfg')"
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/gluesemantics.doctest", line 348, in gluesemantics.doctest
Failed example:
for r in glue.get_readings(glue.gfl_to_compiled(gfl)):
print r.simplify().normalize()
Expected:
exists x.(dog(x) & exists z1.(John(z1) & sees(z1,x)))
exists x.(John(x) & exists z1.(dog(z1) & sees(x,z1)))
Got:
exists z1.(dog(z1) & exists z2.(John(z2) & sees(z2,z1)))
exists z1.(John(z1) & exists z2.(dog(z2) & sees(z1,z2)))
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/gluesemantics.doctest", line 385, in gluesemantics.doctest
Failed example:
depparser = MaltParser(tagger=tagger)
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest gluesemantics.doctest[149]>", line 1, in <module>
depparser = MaltParser(tagger=tagger)
File "/Users/sb/git/nltk/nltk/parse/malt.py", line 24, in __init__
self.config_malt()
File "/Users/sb/git/nltk/nltk/parse/malt.py", line 73, in config_malt
verbose=verbose)
File "/Users/sb/git/nltk/nltk/internals.py", line 510, in find_binary
raise LookupError('\n\n%s\n%s\n%s' % (div, msg, div))
LookupError:
===========================================================================
NLTK was unable to find the malt.jar executable! Use
config_malt.jar() or set the MALTPARSERHOME environment variable.
>>> config_malt.jar('/path/to/malt.jar')
Searched in:
- .
- /usr/local/bin
For more information, on malt.jar, see:
<http://w3.msi.vxu.se/~jha/maltparser/index.html>
===========================================================================
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/gluesemantics.doctest", line 390, in gluesemantics.doctest
Failed example:
glue = Glue(depparser=depparser)
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest gluesemantics.doctest[150]>", line 1, in <module>
glue = Glue(depparser=depparser)
NameError: name 'depparser' is not defined
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/gluesemantics.doctest", line 391, in gluesemantics.doctest
Failed example:
for reading in glue.parse_to_meaning('every girl chases a dog'):
print reading.simplify().normalize()
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest gluesemantics.doctest[151]>", line 1, in <module>
for reading in glue.parse_to_meaning('every girl chases a dog'):
File "/Users/sb/git/nltk/nltk/sem/glue.py", line 433, in parse_to_meaning
for agenda in self.parse_to_compiled(sentence):
File "/Users/sb/git/nltk/nltk/sem/glue.py", line 515, in parse_to_compiled
gfls = [self.depgraph_to_glue(dg) for dg in self.dep_parse(sentence)]
File "/Users/sb/git/nltk/nltk/sem/glue.py", line 522, in dep_parse
self.depparser = MaltParser(tagger=self.get_pos_tagger())
File "/Users/sb/git/nltk/nltk/parse/malt.py", line 24, in __init__
self.config_malt()
File "/Users/sb/git/nltk/nltk/parse/malt.py", line 73, in config_malt
verbose=verbose)
File "/Users/sb/git/nltk/nltk/internals.py", line 510, in find_binary
raise LookupError('\n\n%s\n%s\n%s' % (div, msg, div))
LookupError:
===========================================================================
NLTK was unable to find the malt.jar executable! Use
config_malt.jar() or set the MALTPARSERHOME environment variable.
>>> config_malt.jar('/path/to/malt.jar')
Searched in:
- .
- /usr/local/bin
For more information, on malt.jar, see:
<http://w3.msi.vxu.se/~jha/maltparser/index.html>
===========================================================================
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/gluesemantics.doctest", line 396, in gluesemantics.doctest
Failed example:
drtglue = DrtGlue(depparser=depparser)
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest gluesemantics.doctest[152]>", line 1, in <module>
drtglue = DrtGlue(depparser=depparser)
NameError: name 'depparser' is not defined
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/gluesemantics.doctest", line 397, in gluesemantics.doctest
Failed example:
for reading in drtglue.parse_to_meaning('every girl chases a dog'):
print reading.simplify().normalize()
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest gluesemantics.doctest[153]>", line 1, in <module>
for reading in drtglue.parse_to_meaning('every girl chases a dog'):
NameError: name 'drtglue' is not defined
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/gluesemantics.doctest", line 411, in gluesemantics.doctest
Failed example:
readings = drtglue.parse_to_meaning('John sees Mary')
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest gluesemantics.doctest[155]>", line 1, in <module>
readings = drtglue.parse_to_meaning('John sees Mary')
NameError: name 'drtglue' is not defined
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/gluesemantics.doctest", line 412, in gluesemantics.doctest
Failed example:
for drs in readings:
print drs.simplify().normalize()
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest gluesemantics.doctest[156]>", line 1, in <module>
for drs in readings:
NameError: name 'readings' is not defined
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/gluesemantics.doctest", line 423, in gluesemantics.doctest
Failed example:
readings[0].equiv(readings[1])
Exception raised:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/doctest.py", line 1253, in __run
compileflags, 1) in test.globs
File "<doctest gluesemantics.doctest[157]>", line 1, in <module>
readings[0].equiv(readings[1])
NameError: name 'readings' is not defined
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/probability.doctest", line 133, in probability.doctest
Failed example:
train_and_test(gt)
Expected:
14.43%
Got:
0.17%
.
\ No newline at end of file
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/relextract.doctest", line 66, in relextract.doctest
Failed example:
for doc in conll2002.chunked_sents('ned.train')[27]:
print doc
Expected:
('Het', 'Art')
(ORG Hof/N van/Prep Cassatie/N)
('verbrak', 'V')
('het', 'Art')
('arrest', 'N')
('zodat', 'Conj')
('het', 'Pron')
('moest', 'V')
('worden', 'V')
('overgedaan', 'V')
('door', 'Prep')
('het', 'Art')
('hof', 'N')
('van', 'Prep')
('beroep', 'N')
('van', 'Prep')
(LOC Antwerpen/N)
('.', 'Punc')
Got:
(u'Het', u'Art')
(ORG Hof/N van/Prep Cassatie/N)
(u'verbrak', u'V')
(u'het', u'Art')
(u'arrest', u'N')
(u'zodat', u'Conj')
(u'het', u'Pron')
(u'moest', u'V')
(u'worden', u'V')
(u'overgedaan', u'V')
(u'door', u'Prep')
(u'het', u'Art')
(u'hof', u'N')
(u'van', u'Prep')
(u'beroep', u'N')
(u'van', u'Prep')
(LOC Antwerpen/N)
(u'.', u'Punc')
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/relextract.doctest", line 235, in relextract.doctest
Failed example:
for r in rels[:10]:
print relextract.show_clause(r, relsym='DE') # doctest: +NORMALIZE_WHITESPACE
Expected:
DE('tribunal_supremo', 'victoria')
DE('museo_de_arte', 'alcorc\xe3\xb3n')
DE('museo_de_bellas_artes', 'a_coru\xe3\xb1a')
DE('siria', 'l\xe3\xadbano')
DE('uni\xe3\xb3n_europea', 'pek\xe3\xadn')
DE('ej\xe3\xa9rcito', 'rogberi')
DE('juzgado_de_instrucci\xe3\xb3n_n\xe3\xbamero_1', 'san_sebasti\xe3\xa1n')
DE('psoe', 'villanueva_de_la_serena')
DE('ej\xe3\xa9rcito', 'l\xe3\xadbano')
DE('juzgado_de_lo_penal_n\xe3\xbamero_2', 'ceuta')
Got:
DE(u'tribunal_supremo', u'victoria')
DE(u'museo_de_arte', u'alcorc\xf3n')
DE(u'museo_de_bellas_artes', u'a_coru\xf1a')
DE(u'siria', u'l\xedbano')
DE(u'uni\xf3n_europea', u'pek\xedn')
DE(u'ej\xe9rcito', u'rogberi')
DE(u'juzgado_de_instrucci\xf3n_n\xfamero_1', u'san_sebasti\xe1n')
DE(u'psoe', u'villanueva_de_la_serena')
DE(u'ej\xe9rcito', u'l\xedbano')
DE(u'juzgado_de_lo_penal_n\xfamero_2', u'ceuta')
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/relextract.doctest", line 258, in relextract.doctest
Failed example:
for doc in conll2002.chunked_sents('ned.train'):
for r in relextract.extract_rels('PER', 'ORG', doc, corpus='conll2002', pattern=VAN):
print relextract.show_clause(r, relsym="VAN")
Expected:
VAN("cornet_d'elzius", 'buitenlandse_handel')
VAN('johan_rottiers', 'kardinaal_van_roey_instituut')
VAN('annie_lennox', 'eurythmics')
Got:
VAN(u"cornet_d'elzius", u'buitenlandse_handel')
VAN(u'johan_rottiers', u'kardinaal_van_roey_instituut')
VAN(u'annie_lennox', u'eurythmics')
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/tag.doctest", line 222, in tag.doctest
Failed example:
print trigram_tagger.size()
Expected:
1493
Got:
1502
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/tag.doctest", line 224, in tag.doctest
Failed example:
print 'Accuracy: %4.1f%%' % (
100.0 * trigram_tagger.evaluate(brown_test))
Expected:
Accuracy: 88.8%
Got:
Accuracy: 89.0%
***************************************************************************
File "/Users/sb/git/nltk/nltk/test/tag.doctest", line 251, in tag.doctest
Failed example:
brill_tagger = trainer.train(brown_train, max_rules=10) # doctest: +NORMALIZE_WHITESPACE
Expected:
Training Brill tagger on 4523 sentences...
Finding initial useful rules...
Found 75359 useful rules.
<BLANKLINE>
B |
S F r O | Score = Fixed - Broken
c i o t | R Fixed = num tags changed incorrect -> correct
o x k h | u Broken = num tags changed correct -> incorrect
r e e e | l Other = num tags changed incorrect -> incorrect
e d n r | e
------------------+-------------------------------------------------------
354 354 0 3 | TO -> IN if the tag of the following word is 'AT'
111 173 62 3 | NN -> VB if the tag of the preceding word is 'TO'
110 110 0 4 | TO -> IN if the tag of the following word is 'NP'
83 157 74 4 | NP -> NP-TL if the tag of the following word is
| 'NN-TL'
73 77 4 0 | VBD -> VBN if the tag of words i-2...i-1 is 'BEDZ'
71 116 45 3 | TO -> IN if the tag of words i+1...i+2 is 'NNS'
65 65 0 3 | NN -> VB if the tag of the preceding word is 'MD'
63 63 0 0 | VBD -> VBN if the tag of words i-3...i-1 is 'HVZ'
59 62 3 2 | CS -> QL if the text of words i+1...i+3 is 'as'
55 57 2 0 | VBD -> VBN if the tag of words i-3...i-1 is 'HVD'
Got:
Training Brill tagger on 4523 sentences...
Finding initial useful rules...
Found 75299 useful rules.
<BLANKLINE>
B |
S F r O | Score = Fixed - Broken
c i o t | R Fixed = num tags changed incorrect -> correct
o x k h | u Broken = num tags changed correct -> incorrect
r e e e | l Other = num tags changed incorrect -> incorrect
e d n r | e
------------------+-------------------------------------------------------
354 354 0 3 | TO -> IN if the tag of the following word is 'AT'
110 110 0 3 | TO -> IN if the tag of the following word is 'NP'
91 127 36 6 | VB -> NN if the tag of words i-2...i-1 is 'AT'
82 143 61 3 | NN -> VB if the tag of the preceding word is 'TO'
71 116 45 2 | TO -> IN if the tag of words i+1...i+2 is 'NNS'
66 69 3 0 | VBN -> VBD if the tag of the preceding word is
| 'NP'
64 131 67 6 | NP -> NP-TL if the tag of the following word is
| 'NN-TL'
59 62 3 2 | CS -> QL if the text of words i+1...i+3 is 'as'
55 55 0 1 | NN -> VB if the tag of the preceding word is 'MD'
55 59 4 0 | VBD -> VBN if the tag of words i-2...i-1 is 'BEDZ'
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment