【发布时间】:2016-09-04 17:20:30
【问题描述】:
给定一个解析树(通过http://nlp.stanford.edu:8080/corenlp/process 漂亮的打印选项获得)
(ROOT (S (NP (PRP You)) (VP (MD could) (VP (VB say) (SBAR (IN that) (S (NP (PRP they)) (ADVP (RB regularly)) (VP (VB catch) (NP (NP (DT a) (NN shower)) (, ,) (SBAR (WHNP (WDT which)) (S (VP (VBZ adds) (PP (TO to) (NP (NP (PRP$ their) (NN exhilaration)) (CC and) (NP (FW joie) (FW de) (FW vivre))))))))))))) (. .)))
我怎样才能得出原句?
You could say that they regularly catch a shower, which adds to their exhilaration and joie de vivre.
我正在考虑使用一些正则表达式魔法,但我想知道斯坦福 NLP 是否有内置功能来完成这项任务?
【问题讨论】:
标签: regex nlp nltk stanford-nlp