-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Different ent_iob behavior after adding EntityRuler to pipeline #4267
Comments
Thanks for the report! I do think this is a bug. From the docs about EntityRuler:
In this case it's added after the ner, and it should respect the NER annotations. Even if there are no entities found by the NER, I would still expect -as a user- that |
Huh, setting Lines 547 to 550 in 669a7d3
Maybe the resetting loop should preserve 2 in cases where it's 2? I'm not sure if there are some side effects I'm not thinking of... |
Ha, yea, I was just looking at the same. One approach would be to set the default |
I don't think it's possible to have the behavior in |
Ok it turns out this requires a more in-depth analysis and solution ;-) Will look into it ASAP. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm not totally sure of the expected behavior but after adding an EntityRuler to a pipeline, non entities seem to get
.ent_iob
tags of 0 rather than 2 when just using the EntityRecognizer. This affects whatdoc.is_nered
returns.How to reproduce the behaviour
Your Environment
Info about spaCy
The text was updated successfully, but these errors were encountered: