Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using signatures computed using wordNet 3.0 #60

Open
nDiv opened this issue Nov 5, 2019 · 0 comments
Open

Using signatures computed using wordNet 3.0 #60

nDiv opened this issue Nov 5, 2019 · 0 comments

Comments

@nDiv
Copy link

nDiv commented Nov 5, 2019

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant