Skip to content
Discussion options

You must be logged in to vote

In an ideal world, there would be a query I could write to say:

'for each sentence, if MONEY entity and PERSON entity share VERB (or if both entities are 'connected' as subject and object, add entities to dataframe'...

Uh, have you seen the DependencyMatcher? It sounds like what you want is a rather straightforward application of it.

If you want to work with entities as single tokens you can use the merge_entities pipe.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wagnertail
Comment options

Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / parser Feature: Dependency Parser feat / matcher Feature: Token, phrase and dependency matcher
2 participants