简体   繁体   English

如何在不使用stanford-corenlp的引理的情况下使用stanford-corenlp的openie?

[英]how to use openie from stanford-corenlp without using lemma from stanford-corenlp?

I want to see if results would improve if we use our own lemma analysis. 我想看看如果使用我们自己的引理分析,结果是否会改善。
But pipeline requires lemma before annotation. 但是管道在注释之前需要引理。

props.setProperty("annotators", "tokenize,ssplit,pos,lemma,depparse,natlog,openie");  

Can someone help me out? 有人可以帮我吗?

If you look at edu.stanford.nlp.pipeline.MorphaAnnotator you can see how lemmas are added to an annotation in the Java code. 如果查看edu.stanford.nlp.pipeline.MorphaAnnotator,您会看到如何在Java代码中将引号添加到注释中。

You can create your own custom annotator that supplies your lemmas based off that code. 您可以创建自己的自定义注释器,根据该代码提供引理。

I've needed to update our documentation about custom annotators, so I've actually written a detailed version of the CustomLemmaAnnotator and supplied it on our documentation site. 我需要更新有关自定义注释器的文档,因此实际上我已经编写了CustomLemmaAnnotator的详细版本,并将其提供给我们的文档站点。

https://stanfordnlp.github.io/CoreNLP/new_annotator.html https://stanfordnlp.github.io/CoreNLP/new_annotator.html

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

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