在Stanford Parser上设置非折叠依赖项

时间:2012-11-07 18:47:30

标签: java stanford-nlp

我正在使用Stanford Parser Java API来执行语法分析,我想选择“不保留树结构的非折叠依赖项”模式。 在手册中,它说明了如何使用控制台完成此操作,但不使用Java代码。 有谁知道怎么做?

1 个答案:

答案 0 :(得分:1)

Tree parseTree;
GrammaticalStructure gs = gsf.newGrammaticalStructure(parseTree);
Collection tdl = gs.typedDependencies();
相关问题