alvations / pywsd

Python Implementations of Word Sense Disambiguation (WSD) Technologies.
MIT License
743 stars 134 forks source link

Using signatures computed using wordNet 3.0 #60

Open nDiv opened 4 years ago

nDiv commented 4 years ago

Hi,

I installed pywsd using pip in an Anaconda environment. Now I am trying to use the lesk algorithm using signatures computed with WordNet 3.0. To do this I used Precompute Signatures.ipynb where I specified the wordnet_30_dir parameter to generate the signatures. I then copy the generated signatures.pkl file into the lib directory of the installed pywsd and replace the default file that came with the installation.

My code then fails at this line: from pywsd import disambiguate With the following error: KeyError: 'simple'

Re-running the same line goes through the previous error and produces the following error: AttributeError: module 'pywsd' has no attribute 'lesk'