从信号中提取三次 [英] Triple extraction from a sentance

查看:178
本文介绍了从信号中提取三次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这种格式的解析文本,我通过使用Standford nlp得到它。

I have this parsed text in this format, I got it by using Standford nlp.

   (ROOT
  (S
    (NP (DT A) (NN passenger) (NN plane))
    (VP (VBZ has)
      (VP (VBD crashed)
        (ADVP (RB shortly))
        (PP (IN after)
          (NP
            (NP (NN take-off))
            (PP (IN from)
              (NP (NNP Kyrgyzstan) (`` `) (NNP scapital) (, ,) (NNP Bishkek)))))
        (, ,)
        (VP (VBG killing)
          (NP
            (NP (DT a) (JJ large) (NN number))
            (PP (IN of)
              (NP
                (NP (DT those))
                (PP (IN on)
                  (NP (NN board)))))))))
    (. .)))

det(plane-3, A-1)
nn(plane-3, passenger-2)
nsubj(crashed-5, plane-3)
aux(crashed-5, has-4)
root(ROOT-0, crashed-5)
advmod(crashed-5, shortly-6)
prep_after(crashed-5, take-off-8)
nn(Bishkek-14, Kyrgyzstan-10)
nn(Bishkek-14, scapital-12)
prep_from(take-off-8, Bishkek-14)
dep(crashed-5, killing-16)
det(number-19, a-17)
amod(number-19, large-18)
dobj(killing-16, number-19)
prep_of(number-19, those-21)
prep_on(those-21, board-23) 

我正在尝试构建一个RDF图,我需要一个工具或库来从中提取三元组(主题,对象,谓词)。

I am trying to construct an RDF graph and I need a tool or a library to extract triplet (subject,object,predicate) from it.

推荐答案

您可以使用CoreNLP的 OpenIE 模块来提取三元组访问:

You can use CoreNLP's OpenIE module to extract triplets visit here :


https://nlp.stanford.edu/software/openie.html

了解更多信息。
您可以进一步使用这些关系三元组来创建RDF图。

to know more. You can further use those relationship triplets to create RDF graph.

这篇关于从信号中提取三次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆