简体   繁体   English

斯坦福大学CoreNLP词素化

[英]Stanford CoreNLP lemmatization

I have written code in java that displays what each of the annotators output such as tokens, pos, semantics, ner but cant figure out how to display lemma is this possible? 我已经用Java编写了代码,以显示每个注释器输出的内容,例如标记,pos,语义,ner,但无法弄清楚如何显示引理,这可能吗?

So my question is, is it possible to produce a lemma output of what it is doing (the result)? 所以我的问题是,是否有可能产生其所做的引理输出(结果)?

CoreLabel class has a lemma() method that returns the lemma. CoreLabel类具有返回lemma的lemma()方法。 eg 例如

// token is a CoreLable instance
String lemma = token.lemma();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM