1
我正在使用Stanford Parser
。我得到一个错误:如何在java中将字符串转换为corelabel?
can not parse a string to Corelabel
下面是一些代码:
List<CoreMap> sentences = annotation.get(CoreAnnotations.SentencesAnnotation.class);
for(CoreMap sentence: sentences)
{
CoreLabel temp=sentence.toString().replace(clust2, clust);
sentences.set(m.sentNum-1,temp);
}