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

narratives/sentence_generator.py no entities created from spacy model #3

Open
almog-gueta opened this issue Jul 9, 2023 · 0 comments

Comments

@almog-gueta
Copy link

Hi

When running 1.split_sentences_trf.py, the code is loading a spacy "en_core_web_trf" model and there is a parameter in your code (line 25 in CANarEx/narratives/sentence_generator.py) that disables NER in this model. However, when using this loaded model, the code is reaching to the 'ents' attribute which is (from my understanding) created by the NER part of the model. If disabling it, there are no entities created.

For sanity check I re-ran the code without disabling the NER parameter and entities were created.
If so, why do we need to disable'ner'in spacy model?

Thanks

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