Skip to content
Discussion options

You must be logged in to vote

Hello, if I understood it correctly you'd like to find the person names, right? Sth like this:

Jonas visited Italy 2 years ago.

In this case, you located the location entity (Italy), then you find the verb that this token attaches (visited). If the verb is one of go, visit, travel etc, then, you like to find who made this action. At this point you look for the nsubj of the verb i.e. the nominal subject , here Jonas.

Of course this is a simple sentence and relatively easy case, for more complicated sentences you need more tricks 😉

I have a tutorial video for finding subjects of verbs if you want you can check it out 😉 The playlist is called "spaCy quickies", the video is called Different…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
3 participants