#7 Testing every word in the Verb dict.

closed-fixed
nobody
None
5
2004-07-19
2002-06-19
Ged
No

Using WordNet 1.6, the following script causes an error:

from wntools import *

for word in V:
print word.form, '\t', len(hyponyms(word))

Error:

bonnet 1
boo 1
boob 1
book
Traceback (most recent call last):
File "C:/Python22/Test of bug.py", line 4, in ?
print word.form, '\t', len(hyponyms(word))
File "C:\PYTHON22\wntools.py", line 92, in hyponyms
return closure(source, HYPONYM)
File "C:\PYTHON22\wntools.py", line 79, in closure
return reduce(union, map(lambda s, t=pointerType:tree
(s,t), source.senses()))
File "C:\Python22\wordnet.py", line 208, in getSenses
self._senses = tuple(map(getSense,
self._synsetOffsets))
File "C:\Python22\wordnet.py", line 207, in getSense
return getSynset(pos, offset)[form]
File "C:\Python22\wordnet.py", line 1021, in getSynset
return _dictionaryFor(pos).getSynset(offset)
File "C:\Python22\wordnet.py", line 763, in getSynset
return _entityCache.get((pos, offset), loader)
File "C:\Python22\wordnet.py", line 1233, in get
del this.history[timestamp]
KeyError: 129488

It causes this error for many different words in the verb
dictionary.

Testing the wordnet.py and wntools.py on every word in
every dictionary would be a great smoketest.

Thanks for two very useful modules!

Ged

Discussion

  • Oliver Steele

    Oliver Steele - 2004-07-19
    • status: open --> open-fixed
     
  • Oliver Steele

    Oliver Steele - 2004-07-19
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks