Revision: 6805
http://nltk.svn.sourceforge.net/nltk/?rev=6805&view=rev
Author: stevenbird
Date: 2008-11-07 10:52:02 +0000 (Fri, 07 Nov 2008)
Log Message:
-----------
replaced pos with pos_tag in a couple of places in all_synsets()
(pos is a function parameter which shouldn't be used once
pos_tag is initialized)
There's still a problem when running all_synsets() without any pos parameter.
>>> list(wn.all_synsets())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/sb/Documents/workspace/nltk/nltk/corpus/reader/wordnet.py", line 456, in all_synsets
synset = self._synset_from_pos_and_line(pos_tag, line)
File "/Users/sb/Documents/workspace/nltk/nltk/corpus/reader/wordnet.py", line 399, in _synset_from_pos_and_line
offsets = self._lemma_pos_offset_map[lemma_name][synset.pos]
KeyError: 's'
Modified Paths:
--------------
trunk/nltk/nltk/corpus/reader/wordnet.py
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|