Skip to content
Discussion options

You must be logged in to vote

As mentioned in the threads you link to / posted in, the DependencyMatcher can only use patterns such that each node matches exactly one token. OP: ? could match 0 tokens and so it does not work.

If you want to make the third token optional, what you can do is simply add two patterns with the same label. The first pattern would have just two tokens, and the second pattern would have all three tokens.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Ptark
Comment options

@polm
Comment options

Answer selected by adrianeboyd
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