Is there a way to extract Subject-Verb-Object triplets? #6280
Answered
by
svlandeg
santoshbs
asked this question in
Help: Coding & Implementations
-
|
Using spacy, is there a way to obtain all SVO triplets from a corpus? |
Beta Was this translation helpful? Give feedback.
Answered by
svlandeg
Oct 21, 2020
Replies: 1 comment
-
|
If you have a model with a trained parser, you can navigate the dependency tree looking for any type of patterns you want. Additionally, spaCy 3 features a new If you end up playing with the DependencyMatcher, we'd love to hear your feedback! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ines
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have a model with a trained parser, you can navigate the dependency tree looking for any type of patterns you want.
Additionally, spaCy 3 features a new
DependencyMatcherthat allows you to match patterns within the dependency parse. There is currently a pre-release of spaCy v3 available asspacy-nightly, you can find more information here: https://explosion.ai/blog/spacy-v3-nightly.If you end up playing with the DependencyMatcher, we'd love to hear your feedback!