【发布时间】:2016-02-17 10:48:40
【问题描述】:
我需要从作为 Stanford Parser 中词法化解析的输出生成的依赖解析树中提取 NP-VP-NP 形式的三元组。
最好的方法是什么。 例如如果解析树如下:
(ROOT
(S
(S
(NP (NNP Exercise))
(VP (VBZ reduces)
(NP (NN stress)))
(. .))
(NP (JJ Regular) (NN exercise))
(VP (VBZ maintains)
(NP (JJ mental) (NN fitness)))
(. .)))
我需要提取 2 个三元组:
- 锻炼-减轻-压力和
- 定期锻炼-保持-心理健康
有什么想法吗?
【问题讨论】:
标签: nlp stanford-nlp opennlp