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

spacy parser error #7

Open
karimmahalian opened this issue Jul 25, 2022 · 3 comments
Open

spacy parser error #7

karimmahalian opened this issue Jul 25, 2022 · 3 comments

Comments

@karimmahalian
Copy link

Hi,

Thank you for sharing ur code with us. I tried to run prepare_dataset.py but I got this error

AttributeError: 'English' object has no attribute 'parser'

Any idea plz thank you

@honghanhh
Copy link
Owner

Hi @karimmahalian,

Make sure you download the right spacy models.
You can also try adding a further parameter to set parser=True when loading the spacy model, e.g.,

nlp = spacy.load('en_core_web_sm', parser=True)

Hope this will help you well.

@karimmahalian
Copy link
Author

Hi,

Thank u for ur reply. However spacy.load('en_core_web_sm', parser=True) didn t work it gave me this error

TypeError: load() got an unexpected keyword argument 'parser'

The version of spacy is 3.4.0

Thank u

@honghanhh
Copy link
Owner

@karimmahalian The original version I used for GCN is 2.0.11.
Maybe you can downgrade SpaCy version (preferable to install necessary libraries with suggested version requirements.txt) to avoid version conflicting bugs.
Best regards,

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

2 participants