Extract triplet subject, predicate, and object sentence

前端 未结 3 1870
南笙
南笙 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 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.

提交回复
热议问题