【发布时间】:2014-09-27 00:54:11
【问题描述】:
我有一个复杂的句子,我需要把它分成主句和从句。
例如对于句子
ABC 引用了一个事实,即许多国家/地区都禁止使用化学添加剂,并认为它们在该州也可能被禁止。
所需的拆分
1)ABC cites the fact
2)chemical additives are banned in many countries
3)ABC feels they may be banned in this state too.
我想我可以使用斯坦福解析器树或依赖项,但我不确定如何从这里开始。
树
(根 (S (NP (NNP ABC)) (副总裁(VBZ 引用) (NP(DT)(NN事实)) (SBAR(在那) (S (NP(NN化学)(NNS添加剂)) (副总裁 (副总裁(VBP) (VP(禁止VBN) (PP (在) (NP (JJ 多) (NNS 国家))))) (抄送和) (VP(VBZ感觉) (SBAR (S (NP(PRP 他们)) (副总裁(MD 可能) (副总裁(VB 是) (VP(禁止VBN) (PP (在) (NP (DT this) (NN 状态))) (ADVP(也有RB)))))))))))) (. .)))和折叠的依赖解析
nsubj(cites-2, ABC-1) 根(ROOT-0,引用-2) det(fact-4, the-3) dobj(cites-2, fact-4) 标记(banned-9, that-5) nn(添加剂 7,化学物质 6) nsubjpass(禁止 9,添加剂 7) nsubj(感觉 14,添加剂 7) auxpass(banned-9, are-8) ccomp(cites-2, 禁止-9) amod(12 个国家,11 个国家) prep_in(banned-9, countries-12) ccomp(cites-2, feel-14) conj_and(banned-9, feel-14) nsubjpass(banned-18, they-15) 辅助(禁止 18 年,5 月 16 日) auxpass(禁止 18,be-17) ccomp(感觉 14,禁止 18) det(state-21, this-20) prep_in(banned-18, state-21) advmod(banned-18, too-22)【问题讨论】:
-
你是如何实现树结果的? StanfordDependencyParser?
标签: nlp stanford-nlp