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

load_model_from_init_py() got an unexpected keyword argument 'enable' #34

Closed
FahdCodes opened this issue Jul 27, 2022 · 3 comments
Closed

Comments

@FahdCodes
Copy link

I'm using the English tagger. If I run the same code as mentioned in https://ucrel.github.io/pymusas/usage/how_to/tag_text, it is throwing up an error. The error happens in the following line of the code:

english_tagger_pipeline = spacy.load('en_dual_none_contextual')

The error is:
`/usr/local/lib/python3.7/dist-packages/en_dual_none_contextual/init.py in load(**overrides)
44
45 def load(**overrides):
---> 46 return load_model_from_init_py(file, **overrides)

TypeError: load_model_from_init_py() got an unexpected keyword argument 'enable'`

It was working perfectly fine 2 days ago. This error seems to be recent.

@matthewcoole
Copy link

Thanks for reporting @FahdCodes,

The error seems to be coming from a new argument added to the latest version of spacy which we haven't tested with yet.

A workaround for now is to downgrade to v3.3.1 of spacy.

pip uninstall spacy
pip install spacy==3.3.1

Hope this helps.

@FahdCodes
Copy link
Author

Thanks! that worked perfectly

@perayson
Copy link
Member

Thanks @matthewcoole! Glad that this worked okay. I'm closing this issue now, but we'll return to it once we have the new pot of funding started and someone will be working on pymusas again more regularly.

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

3 participants