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'
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'