Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extracting the relationship between entities in Stanford CoreNLP

I want to extract the complete relationship between two entities using Stanford CoreNLP (or maybe other tools).

For example:

Windows is more popular than Linux.

This tool requires Java.

Football is the most popular game in the World.

What is the fastest way? And what is the best practice for that?

Thanks in advance

like image 581
Orion Avatar asked Dec 15 '12 13:12

Orion


People also ask

What is entity relation extraction?

Relation Extraction is the task of predicting attributes and relations for entities in a sentence. For example, given a sentence “Barack Obama was born in Honolulu, Hawaii.”, a relation classifier aims at predicting the relation of “bornInCity”.


2 Answers

ReVerb focuses on Open IE. You can start by reading their paper "Identifying Relations for Open Information Extraction" and checking the demo site.

like image 154
Kenston Choi Avatar answered Oct 04 '22 03:10

Kenston Choi


You are probably looking for dependency relations between nouns. Stanford Parser provides such output. Have a look here. You can combine what Pete said (i.e. the POS graph) with the dependency graph to identify what relationship (for example, direct object or nominal subject, etc.) a pair of nouns (or noun phrases) share.

like image 29
Himanshu Gahlot Avatar answered Oct 04 '22 02:10

Himanshu Gahlot