上下文无关文法树作为功能

时间:2018-12-17 17:51:01

标签: python stanford-nlp

有没有办法将StanfordParser的输出用作模型的功能? StanfordParser的输出如下所示: 句子:“你好吗?”

Result - [Tree('ROOT', [Tree('SBARQ', [Tree('WHADVP', [Tree('RB', ['hello']), Tree('WRB', ['how'])]), Tree('SQ', [Tree('VBP', ['are']), Tree('NP', [Tree('PRP', ['you'])])]), Tree('.', ['?'])])])]

Result[0] - (ROOT (SBARQ
(WHADVP (RB hello) (WRB how))
(SQ (VBP are) (NP (PRP you)))
(. ?)))

0 个答案:

没有答案