-
-
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
False positive matches on subsequent OPs in the Matcher patterns #3879
Comments
Thanks for the report. I think this is the same bug as #3839. Merging this with that issue. |
It seems as the fix that fixed #3839, did not fix this issue. |
@paulrinckens : you're right, the matcher still produces one false positive match by misinterpreting the first token of the pattern. Reopening and wrote a unit test with @marina-sp's example. |
* failing unit test for Issue #3879 * mark test as failing
Merging this with #4154! |
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. |
Hello, I'm working with spacy a lot, and I especially like the spacy.matchers! But I think I found something that is not working properly (yet).
If a pattern contains a pattern element with a specified OP followed by another optional pattern element with OP=?, then all other restrictions one the first element (like ORTH or REGEX) are ignored.
How to reproduce
The ? operator seems to respect ORTH restrictions normally, when there is only a single operator:
My Environment
I hope this is helpful and you will be able to look into it. Thank you in advance!
The text was updated successfully, but these errors were encountered: