Skip to content
Discussion options

You must be logged in to vote

Negative operators work as usual in AttributeRuler patterns. In this case you can use NOT_IN, like so:

{"DEP": {"NOT_IN": ["case"]}}

! also works as usual, but it negates a whole pattern, while you only want to negate part of a pattern here, since you want to match in a positive fashion on the token text.

Replies: 3 comments 1 reply

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@polm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage feat / matcher Feature: Token, phrase and dependency matcher
3 participants