I want to import wordnet
dictionary but when i import Dictionary form wordnet
i see this error :
for l in open(WNSEARCHDIR+'/lexnames').readlines():
IOError: [Errno 2] No such file or directory: 'C:\Program Files\WordNet\2.0\dict/lexnames'
I install wordnet2.1 in this directory but i cant import
please help me to solve this problem
import nltk
from nltk import *
from nltk.corpus import wordnet
from wordnet import Dictionary
print '-----------------------------------------'
print Dictionary.length
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…