【发布时间】:2013-10-30 00:44:00
【问题描述】:
我正在使用 Stanford Tagger 来确定词性。但是,我想从文本中获取更多信息。是否有可能获得更多信息,例如句子的时态或是否处于主动/被动状态?
到目前为止,我使用的是非常基本的 PoS 标记方法:
List<List<TaggedWord>> taggedUnits = new ArrayList<List<TaggedWord>>();
String input = "This sentence is going to be future. The door was opened.";
for (List<HasWord> sentence : MaxentTagger.tokenizeText(new StringReader(input)))
{
taggedUnits.add(tagger.tagSentence(sentence));
}
【问题讨论】:
标签: nlp stanford-nlp pos-tagger