Skip to content
Discussion options

You must be logged in to vote

It's technically possible to use NOT_IN and IN for the same value in a token dict, but it doesn't really make sense as a pattern. I don't think there's any difference to just using IN with only the values that you want to match?

Be aware that if you use the same key twice in a dictionary definition, the last value is used:

assert {'POS':{"NOT_IN":['AUX',"DET","POSS","PROPN","ADJ"]},"POS":"PREP"} == {'POS': 'PREP'}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by inceatakan
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