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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.