nlpstanford-nlp

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


Solution

  • 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.