Skip to content

Extract wanted text from pattern #5412

Discussion options

You must be logged in to vote

If you're not using any operators/quantifiers, the token position in the match should correspond to the token position in the pattern, so the first { "ORTH": "comme"} in the pattern should correspond to the second token in the matched span.

If the pattern does include operators, unfortunately the Matcher doesn't support capturing groups at this point (see #3275), so there's no easy way to align the pattern with the matched tokens.

Replies: 1 comment

Comment options

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

This discussion was converted from issue #5412 on December 11, 2020 00:22.