【发布时间】:2011-04-04 03:51:05
【问题描述】:
我正在使用nlp parser stanord。
我想从Collectiontdl 中提取一些像nsubj 和更多的元素。
我的代码是:
TreebankLanguagePack tlp = new PennTreebankLanguagePack();
GrammaticalStructureFactory gsf = tlp.grammaticalStructureFactory();
GrammaticalStructure gs = gsf.newGrammaticalStructure(parse);
Collection tdl = gs.typedDependenciesCollapsed();
但我的问题是我不知道如何比较从集合中获得的元素。
非常感谢您的帮助!
【问题讨论】:
标签: nlp stanford-nlp