NLP to find relationship between entities

后端 未结 5 1858
天涯浪人
天涯浪人 2020-12-29 13:56

My current understanding is that it\'s possible to extract entities from a text document using toolkits such as OpenNLP, Stanford NLP.

However, is there a way to fi

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 14:53

    Similar to the Stanford parser, you can also use the Google Language API, where you send a string and get a dependency tree response.

    You can test this API first to see if it works well with your corpus: https://cloud.google.com/natural-language/

    The outcome here is a subject predicate object (SPO) triplet, where your predicate describes the relationship. You'll need to traverse the dependency graph and write a script to parse out the triplet.

提交回复
热议问题