Question about how to extract the exact place that the specific person would go (or something synonym verb like visit, meet, travel) #12502
-
Hi, I tried to extract the place that a specific person would go from a document. I could extract the location entity with Entity Recognition, but couldn't distinguish whether it is the exact place that she/he would go or just mentioned in the text. I was wondering how I could do that? My opinion is as following:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi! Obviously I don't know the specifics of your data and how the sentences look like, but maybe you could try out the dependencymatcher? |
Beta Was this translation helpful? Give feedback.
-
Hello, if I understood it correctly you'd like to find the person names, right? Sth like this:
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 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 Differentiating Money Entities with Syntax . Cheers! |
Beta Was this translation helpful? Give feedback.
Hello, if I understood it correctly you'd like to find the person names, right? Sth like this:
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 thensubj
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…