dependency matcher not working #11031
Answered
by
polm
Manish-ZS
asked this question in
Help: Coding & Implementations
-
deppattern = [ from spacy.matcher import DependencyMatcher dmatcher = DependencyMatcher(nlp.vocab) dmatcher.add("BOOK", [deppattern]) for _, (start, end) in dmatcher(doc): error : [E098] Invalid pattern specified: expected both SPEC and PATTERN. |
Beta Was this translation helpful? Give feedback.
Answered by
polm
Jun 26, 2022
Replies: 1 comment 2 replies
-
Please read the guide to Github Markdown for code. What version of spaCy are you using? This code runs without issue for me.
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
polm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please read the guide to Github Markdown for code.
What version of spaCy are you using? This code runs without issue for me.