When I create Core-NLP myself, I get the following message:
incompatible types; no instance(s) of type variable(s) VALUE exist so that VALUE conforms to Map<Integer,String>
Line of violation:
Map<Integer,String> roleMap = ((CoreLabel)t1.label()).get(CoreAnnotations.CoNLLSRLAnnotation.class);
Violating function:
@SuppressWarnings("unchecked") public <VALUE, KEY extends Key<CoreMap, VALUE>> VALUE get(Class<KEY> key) { for (int i = size; i > 0; ) { if (keys[--i] == key) { return (VALUE)values[i]; } } return null; }
I really don't know how to fix this. I am trying to create CoreNLP with Maven so that I can easily use it in my project. Ideas?
source share