Reputation: 31
the similar question has been asked here but i cant find any relevant answer of it so i am trying again. I am able to get NER and Dependency tree using the library. Now what i looking for is that i want to extract entities with the relationship between the entities. For example , "flipkart has invested in myntra" so i should be able to get entity1 as "flipkart " and entity2 as "myntra" and "investor" as the relation .or similar kind of structure. I am not able to get correct tool for doing the same. I neee some guidelines guys, how to achieve this?. Thanks in advance
Upvotes: 1
Views: 961
Reputation: 581
You can train your own model using Stanford relation extraction toolkit. The model released with the code has only a few relations: Live_In, Located_In, OrgBased_In, Work_For, and None. To train your own model, look at "Training and specifying your own model" on its webpage. The existing model is trained on a small dataset so you will go a long way if you add more training data.
If you want to extract prominent words between two entities in sentences (that is, do not want to classify them into a given set of relations), you can also look at ReVerb.
Upvotes: 1