Reputation: 398
I use Python 3 and NLTK 3.0.0 with WordNet 3.0.
I would like to use this data (semeval2007) with WordNet 2.1.
Is that possible to use WordNet 2.1 with Python 3?
Is that possible to replace WordNet 3.0 with WordNet 2.1? How can i do that?
Upvotes: 2
Views: 626
Reputation: 992
You can use WordNetCorpusReader to load specific version of wordnet.
from nltk.corpus import WordNetCorpusReader
wn2 = WordNetCorpusReader("WordNet-2.0/dict", nltk.data.find("WordNet-2.0/dict"))
print wn2.get_version()
Upvotes: 1