Dear all,
I'm using the EOP API in a maven project that also includes the Stanford CoreNLP API. When I try to run it I get the following error message:
java.lang.NoSuchMethodError: edu.stanford.nlp.util.Generics.newHashMap()Ljava/util/Map;
According to the CoreNLP FAQ (
https://nlp.stanford.edu/software/corenlp-faq.html#nosuchmethoderror), this is caused by conflicting, old versions of the Stanford NLP tools in the classpath. In fact, I'm using the latest version of CoreNLP (3.9.1), but I can see in my project's Dependency Hierarchy that the EOP artifacts have very old versions of Stanford NLP tools as dependencies. The following are added to the classpath as dependencies of the
lap artifact:
stanford-parser 2008-10-26
stanford-ner 2008-05-07
stanford-postagger 2008-09-28
stanford-corenlp 1.3.3
How could this be fixed so EOP and the most recent version of CoreNLP could work together?
Any help would be appreciated.
Thanks and kind regards,
Vivian.