Extract triplet subject, predicate, and object sentence

前端 未结 3 1865
南笙
南笙 2021-02-02 00:17

I\'m trying to extract triplet subject, predicate, and object from sentence. I need more references on how to do this.

相关标签:
3条回答
  • 2021-02-02 00:57

    I'm working on a similar problem, i am working in visual basic. Firstly : I have a list of Subjects / NOUNS Secondly : when i extract the predicate i extract the between phrase...

    (a cat) (Sat on ) (The mat)

    by building the Subject list with nouns and noun phrases their positions can be replaced with (learning pattern) then if the subjects are not detected the learned predicate may have previously been detected.

    Perhaps this is similar to the snowball Algorithm.

    0 讨论(0)
  • 2021-02-02 01:05

    The most basic way to do this, with acceptable result is to do shallow parsing and then extracting NOUN-VERB-NOUN triples. This should work for all SVO (subject–verb–object) languages like English. Some tuning may be required to extract only the first triple from a sentence, or not extract in case of comas. It is a very fast solution, because shallow POS tagging usually is O(n) - 0.01 per sentence, instead of deep parsing(Open NLP, Stanford Parser) which is O(n^3) - 0.4 sec per sentence.

    0 讨论(0)
  • 2021-02-02 01:13

    you can use Stanford parser API or Open NLP to make part of speech tagging and some other NLP operations

    and for the triplet extraction you can implement one of the techniques in the papers available on the internet , i know a good one to implement : http://ailab.ijs.si/delia_rusu/Papers/is_2007.pdf

    0 讨论(0)
提交回复
热议问题