0
私は次のコードを試しましたが、コードは機能せず、出力はnull
です。JavaでStanfordNLP Chinese segmentorを使用するには?
String text = "我爱北京天安门。";
StanfordCoreNLP pipeline = new StanfordCoreNLP();
Annotation annotation = pipeline.process(text);
String result = annotation.get(CoreAnnotations.ChineseSegAnnotation.class);
System.out.println(result);
結果:正しくStanfordNLP中国セグメンタを使用する方法
...
done [0.6 sec].
Using mention detector type: rule
null
?