Skip to content
Discussion options

You must be logged in to vote

There's an open issue for quantifiers in matcher patterns: #5603. (We would welcome a PR!)

However, if you want to detect VPs, you'd be better off working with the tags plus the dependency parses, similar to how the noun chunks detection is implemented, e.g.: https://github.com/explosion/spaCy/blob/260c29794a1caa70f8b0702c31fcfecad6bfdadc/spacy/lang/en/syntax_iterators.py

You could also try out the new DependencyMatcher that will be in the upcoming spacy v3 release. Install spacy-nightly (in a new venv!) to try it out: https://github.com/explosion/spaCy/blob/260c29794a1caa70f8b0702c31fcfecad6bfdadc/spacy/lang/en/syntax_iterators.py

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ines
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
enhancement Feature requests and improvements feat / matcher Feature: Token, phrase and dependency matcher
2 participants