Opposite token attributes for dependencies

Hi,

It is possible to indicate in the token attributes for a pattern if an entity is not an especific DEP? For example, I am looking for a word that does not match {"dep": "flat"}. Which is the syntax to do that?

Thanks

Hi! It sounds like what you're looking for is the NOT_IN operator: https://spacy.io/usage/rule-based-matching#adding-patterns-attributes-extended For example, {"dep": {"NOT_IN": ["flat"]}} would match all tokens that have a dependency label other than flat.