Skip to content
Discussion options

You must be logged in to vote

I feel your pain, tracking this down ;-)

I'm not sure this can really be considered a bug in spaCy though. The patterns {ATTR: value} will match whether a token.ATTR equals the value, and the pattern you created simply can never match. But to replace it automatically with the lowercase variant may also not be the best solution, because then perhaps that will be expected in other cases as well? For instance, if we're matching on LEMMA, we wouldn't take the lemma of the value and match on that, but instead always match on the actual literal provided value.

But maybe in this specific LOWER case, a warning could be thrown ?

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ines
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / matcher Feature: Token, phrase and dependency matcher
2 participants