自分で Core-NLP をビルドすると、次のメッセージが表示されます。
incompatible types; no instance(s) of type variable(s) VALUE exist so that VALUE conforms to Map<Integer,String>
問題のある行:
Map<Integer,String> roleMap = ((CoreLabel)t1.label()).get(CoreAnnotations.CoNLLSRLAnnotation.class);
問題のある機能:
@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;
}
これを修正する方法が本当にわかりません。プロジェクトで簡単に使用できるように、Maven で CoreNLP を構築しようとしています。アイデア?