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

doc.ents empty, doc.is_nered == False #57

Closed
jack-rory-staunton opened this issue Jun 14, 2020 · 3 comments
Closed

doc.ents empty, doc.is_nered == False #57

jack-rory-staunton opened this issue Jun 14, 2020 · 3 comments

Comments

@jack-rory-staunton
Copy link

I followed the documentation to fine-tune the bert-base-cased (en) ner model and then made a spacy doc with text "Bob Jones and Barack Obama went up the hill in Wisconsin." but the resulting doc has doc.ents = () and doc.is_nered = False.

Am I missing something?

Thank you!

@stauntonjr stauntonjr mentioned this issue Jun 19, 2020
@tamuhey tamuhey added the bug Something isn't working label Jun 24, 2020
@tamuhey
Copy link
Contributor

tamuhey commented Jun 24, 2020

Thanks for reporting and I'm sorry for late to reponse.

I think your trained model failed to extract entities.

According to the spacy document, doc.is_nered is always False if there is no entities in doc.

@tamuhey tamuhey removed the bug Something isn't working label Jun 24, 2020
@tamuhey tamuhey closed this as completed Jun 24, 2020
@jack-rory-staunton
Copy link
Author

jack-rory-staunton commented Jun 24, 2020

that's not true! see my screenshot on the closed issue #51

image

@jack-rory-staunton
Copy link
Author

can you show an example where the pipeline recognizes entities?

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