Created
January 11, 2012 20:11
-
-
Save kmike/1596526 to your computer and use it in GitHub Desktop.
nltk under python 2.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_________________________________ [tox sdist] __________________________________ | |
[TOX] ***creating sdist package | |
[TOX] /Users/kmike/svn/nltk$ /usr/local/Cellar/python/2.7.2/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log | |
[TOX] ***copying new sdistfile to '/Users/kmike/.tox/distshare/nltk-2.0.1rc3.zip' | |
______________________________ [tox testenv:py27] ______________________________ | |
[TOX] ***reusing existing matching virtualenv py27 | |
[TOX] ***upgrade-installing sdist | |
[TOX] /Users/kmike/svn/nltk/.tox/py27/log$ ../bin/pip install --download-cache=/Users/kmike/svn/nltk/.tox/_download /Users/kmike/svn/nltk/.tox/dist/nltk-2.0.1rc3.zip -U --no-deps >30.log | |
[TOX] /Users/kmike/svn/nltk/nltk/test$ ../../.tox/py27/bin/python testrunner.py | |
[?1034h | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 49, in align.doctest | |
Failed example: | |
als.alignment = align.Alignment([(0, 0), (1, 4), (2, 1), (3, 3)]) | |
Expected: | |
Traceback (most recent call last): | |
... | |
IndexError: Alignment is outside boundary of mots | |
Got: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[9]>", line 1, in <module> | |
als.alignment = align.Alignment([(0, 0), (1, 4), (2, 1), (3, 3)]) | |
AttributeError: can't set attribute | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 53, in align.doctest | |
Failed example: | |
als.alignment = align.Alignment([(-1, 0), (1, 2), (2, 1), (3, 3)]) | |
Expected: | |
Traceback (most recent call last): | |
... | |
IndexError: Alignment is outside boundary of words | |
Got: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[10]>", line 1, in <module> | |
als.alignment = align.Alignment([(-1, 0), (1, 2), (2, 1), (3, 3)]) | |
AttributeError: can't set attribute | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 59, in align.doctest | |
Failed example: | |
als.alignment = align.Alignment([(1, 3), (3, 2), (0, 1), (2, 0)]) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[12]>", line 1, in <module> | |
als.alignment = align.Alignment([(1, 3), (3, 2), (0, 1), (2, 0)]) | |
AttributeError: can't set attribute | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 60, in align.doctest | |
Failed example: | |
als.alignment | |
Expected: | |
Alignment([(0, 1), (1, 3), (2, 0), (3, 2)]) | |
Got: | |
Alignment([(0, 0), (1, 1), (2, 2), (3, 3)]) | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 67, in align.doctest | |
Failed example: | |
als.alignment = [(0, 0), (1, 1), (2, 2, "boat"), (3, 3, False, (1,2))] | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[14]>", line 1, in <module> | |
als.alignment = [(0, 0), (1, 1), (2, 2, "boat"), (3, 3, False, (1,2))] | |
AttributeError: can't set attribute | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 68, in align.doctest | |
Failed example: | |
als.alignment | |
Expected: | |
Alignment([(0, 0), (1, 1), (2, 2, 'boat'), (3, 3, False, (1, 2))]) | |
Got: | |
Alignment([(0, 0), (1, 1), (2, 2), (3, 3)]) | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 70, in align.doctest | |
Failed example: | |
als.alignment = ((0, 0), (1, 1), (2, 2), (3, 3)) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[16]>", line 1, in <module> | |
als.alignment = ((0, 0), (1, 1), (2, 2), (3, 3)) | |
AttributeError: can't set attribute | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 86, in align.doctest | |
Failed example: | |
em_ibm1 = align.EMIBMModel1(corpus, 1e-3) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[19]>", line 1, in <module> | |
em_ibm1 = align.EMIBMModel1(corpus, 1e-3) | |
AttributeError: 'module' object has no attribute 'EMIBMModel1' | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 87, in align.doctest | |
Failed example: | |
iterations = em_ibm1.train() | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[20]>", line 1, in <module> | |
iterations = em_ibm1.train() | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 88, in align.doctest | |
Failed example: | |
print round(em_ibm1.probabilities['the', 'das'], 1) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[21]>", line 1, in <module> | |
print round(em_ibm1.probabilities['the', 'das'], 1) | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 90, in align.doctest | |
Failed example: | |
print round(em_ibm1.probabilities['book', 'das'], 1) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[22]>", line 1, in <module> | |
print round(em_ibm1.probabilities['book', 'das'], 1) | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 92, in align.doctest | |
Failed example: | |
print round(em_ibm1.probabilities['house', 'das'], 1) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[23]>", line 1, in <module> | |
print round(em_ibm1.probabilities['house', 'das'], 1) | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 94, in align.doctest | |
Failed example: | |
print round(em_ibm1.probabilities['the', 'Buch'], 1) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[24]>", line 1, in <module> | |
print round(em_ibm1.probabilities['the', 'Buch'], 1) | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 96, in align.doctest | |
Failed example: | |
print round(em_ibm1.probabilities['book', 'Buch'], 1) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[25]>", line 1, in <module> | |
print round(em_ibm1.probabilities['book', 'Buch'], 1) | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 98, in align.doctest | |
Failed example: | |
print round(em_ibm1.probabilities['a', 'Buch'], 1) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[26]>", line 1, in <module> | |
print round(em_ibm1.probabilities['a', 'Buch'], 1) | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 100, in align.doctest | |
Failed example: | |
print round(em_ibm1.probabilities['book', 'ein'], 1) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[27]>", line 1, in <module> | |
print round(em_ibm1.probabilities['book', 'ein'], 1) | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 102, in align.doctest | |
Failed example: | |
print round(em_ibm1.probabilities['a', 'ein'], 1) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[28]>", line 1, in <module> | |
print round(em_ibm1.probabilities['a', 'ein'], 1) | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 104, in align.doctest | |
Failed example: | |
print round(em_ibm1.probabilities['the', 'Haus'], 1) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[29]>", line 1, in <module> | |
print round(em_ibm1.probabilities['the', 'Haus'], 1) | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 106, in align.doctest | |
Failed example: | |
print round(em_ibm1.probabilities['house', 'Haus'], 1) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[30]>", line 1, in <module> | |
print round(em_ibm1.probabilities['house', 'Haus'], 1) | |
NameError: name 'em_ibm1' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/align.doctest", line 112, in align.doctest | |
Failed example: | |
em_ibm1.aligned() # doctest: +NORMALIZE_WHITESPACE | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest align.doctest[31]>", line 1, in <module> | |
em_ibm1.aligned() # doctest: +NORMALIZE_WHITESPACE | |
NameError: name 'em_ibm1' is not defined | |
. | |
*************************************************************************** | |
File "/Users/kmike/svn/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 "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, 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/kmike/svn/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 "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, 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/kmike/svn/nltk/nltk/test/chat80.doctest", line 207, in chat80.doctest | |
Failed example: | |
q = join(answer) | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest chat80.doctest[23]>", line 1, in <module> | |
q = join(answer) | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/string.py", line 318, in join | |
return sep.join(words) | |
TypeError: sequence item 1: expected string, int found | |
*************************************************************************** | |
File "/Users/kmike/svn/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/kmike/svn/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 "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest chat80.doctest[26]>", line 1, in <module> | |
for r in rows: print "%s" % r, | |
TypeError: not all arguments converted during string formatting | |
......... | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/japanese.doctest", line 23, in japanese.doctest | |
Failed example: | |
type(knbc.words()[0]) | |
Expected: | |
<type 'str'> | |
Got: | |
<type 'unicode'> | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/japanese.doctest", line 28, in japanese.doctest | |
Failed example: | |
type(knbc.sents()[0][0]) | |
Expected: | |
<type 'str'> | |
Got: | |
<type 'unicode'> | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/japanese.doctest", line 49, in japanese.doctest | |
Failed example: | |
type(jeita.tagged_words()[0][1]) | |
Expected: | |
<type 'str'> | |
Got: | |
<type 'unicode'> | |
...... | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/semantics.doctest", line 663, in semantics.doctest | |
Failed example: | |
print cs_semrep.core | |
Expected: | |
chase(z2,z4) | |
Got: | |
chase(z2,z3) | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/semantics.doctest", line 665, in semantics.doctest | |
Failed example: | |
for bo in cs_semrep.store: | |
print bo | |
Expected: | |
bo(\P.all x.(girl(x) -> P(x)),z2) | |
bo(\P.exists x.(dog(x) & P(x)),z4) | |
Got: | |
bo(\P.all x.(girl(x) -> P(x)),z2) | |
bo(\P.exists x.(dog(x) & P(x)),z3) | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/semantics.doctest", line 669, in semantics.doctest | |
Failed example: | |
cs_semrep.s_retrieve(trace=True) | |
Expected: | |
Permutation 1 | |
(\P.all x.(girl(x) -> P(x)))(\z2.chase(z2,z4)) | |
(\P.exists x.(dog(x) & P(x)))(\z4.all x.(girl(x) -> chase(x,z4))) | |
Permutation 2 | |
(\P.exists x.(dog(x) & P(x)))(\z4.chase(z2,z4)) | |
(\P.all x.(girl(x) -> P(x)))(\z2.exists x.(dog(x) & chase(z2,x))) | |
Got: | |
Permutation 1 | |
(\P.all x.(girl(x) -> P(x)))(\z2.chase(z2,z3)) | |
(\P.exists x.(dog(x) & P(x)))(\z3.all x.(girl(x) -> chase(x,z3))) | |
Permutation 2 | |
(\P.exists x.(dog(x) & P(x)))(\z3.chase(z2,z3)) | |
(\P.all x.(girl(x) -> P(x)))(\z2.exists x.(dog(x) & chase(z2,x))) | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/semantics.doctest", line 677, in semantics.doctest | |
Failed example: | |
for reading in cs_semrep.readings: | |
print reading | |
Expected: | |
exists x.(dog(x) & all z3.(girl(z3) -> chase(z3,x))) | |
all x.(girl(x) -> exists z4.(dog(z4) & chase(x,z4))) | |
Got: | |
exists x.(dog(x) & all z13.(girl(z13) -> chase(z13,x))) | |
all x.(girl(x) -> exists z14.(dog(z14) & chase(x,z14))) | |
.. | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/sourcedstring.doctest", line 1246, in sourcedstring.doctest | |
Failed example: | |
re.sub('better', 'worse', sent) | |
Expected: | |
'I got worse.' | |
Got: | |
'I got worse.'@[27:33,27:27,...,27:27,39:40] | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/sourcedstring.doctest", line 1254, in sourcedstring.doctest | |
Failed example: | |
re.sub('better', 'worse', sent) | |
Expected: | |
'I got worse.' | |
Got: | |
'I got worse.'@[27:33,27:27,...,27:27,39:40] | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/sourcedstring.doctest", line 1448, in sourcedstring.doctest | |
Failed example: | |
x.rpartition(y) | |
Expected: | |
('ascii byte string'@[0:17], ''@[17:17], ''@[17:17]) | |
Got: | |
(''@[0:0], ''@[0:0], 'ascii byte string'@[0:17]) | |
..... | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/tree.doctest", line 16, in tree.doctest | |
Failed example: | |
print tree | |
Expected nothing | |
Got: | |
(s (dp (d the) (np dog)) (vp (v chased) (dp (d the) (np cat)))) | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/tree.doctest", line 24, in tree.doctest | |
Failed example: | |
print tree[path] | |
Exception raised: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/doctest.py", line 1254, in __run | |
compileflags, 1) in test.globs | |
File "<doctest tree.doctest[7]>", line 1, in <module> | |
print tree[path] | |
NameError: name 'path' is not defined | |
*************************************************************************** | |
File "/Users/kmike/svn/nltk/nltk/test/tree.doctest", line 37, in tree.doctest | |
Failed example: | |
print tree.pprint_latex_qtree() | |
Expected: | |
\Tree [.s | |
[.np [.d THE ] [.np DOG ] ] | |
[.vp [.v CHASED ] [.np [.d THE ] [.np CAT ] ] ] ] | |
Got: | |
\Tree [.s | |
[.dp [.d the ] [.np dog ] ] | |
[.vp [.v chased ] [.dp [.d the ] [.np cat ] ] ] ] | |
.... | |
A test failed unexpectedly. Please report this error | |
to the nltk-dev mailinglist. | |
[TOX] ERROR: InvocationError: '../../.tox/py27/bin/python testrunner.py' | |
________________________________ [tox summary] _________________________________ | |
[TOX] ERROR: py27: commands failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment