Skip to content

DependencyMatcher RIGHT_ATTRS allow for only one sort of filtering #10396

Discussion options

You must be logged in to vote

Hi, sorry that explanation is indeed a bit unclear. The dependency matcher matches exactly one token in each RIGHT_ATTRS and the format is the same as the dict for exactly one token in a Matcher pattern. The Matcher pattern is a list of token dicts.

For this kind of pattern, you can use NOT_IN as in "MORPH": {"NOT_IN": ["VerbForm=Inf"]} (or possibly use the subset/superset/intersects operators if it's not the full morph tag that you want to match). Even with a Matcher pattern, you wouldn't be able to apply OP to an individual feature. It always applies to the whole token pattern.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JakubOrlinskiUPM
Comment options

@adrianeboyd
Comment options

@Ptark
Comment options

@polm
Comment options

Answer selected by polm
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
4 participants
Converted from issue

This discussion was converted from issue #10395 on February 28, 2022 16:07.