I am using Stanford POSTagger in my project and imported the tagger .jar and it worked just fine but the problem i encountered when i tried to add Stanford NER_Recognizer .jar file to my project Both of the jars have the same namespace edu.stanford.nlp but there are classes in the NER .jar not present in the POStagger.jar
So I get this exception:
Exception in thread "main" java.lang.NoSuchFieldError: strictGoodCoNLL
at edu.stanford.nlp.ie.NERFeatureFactory.featuresCpC(NERFeatureFactory.java:1710) " this is because the pos tagger .jar has edu.stanford.nlp.io.IOUtils class which is also present in the NER .jar
So, how can I choose that I want the second class not the first?