I have trained a new relation extractor model according to https://nlp.stanford.edu/software/relationExtractor.html and the model works well in Java with the test entry StanfordCoreNlpDemo
.
However, when I do that in Python env, by adding annotator "relation" in the CoreNLP pipeline, I can't get the "relation" result. I use stanza
to call corenlp. Any suggestion?
I have made it work. The relation extractor result was not added to pipeline. So i have to do that by myself. But thanks to the corenlp framework, it's affordable to do that
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.