根据github上示例使用word进行分词,得出结果是每个字都分开了。
List<Word> words = WordSegmenter.segWithStopWords("JAVA是世界上最好的语言");
System.out.println(words);
W/System.err: log4j:WARN No appenders could be found for logger (org.apdplat.word.segmentation.Seg mentationFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
I/System.out: [java, 是, 世, 界, 上, 最, 好, 的, 语, 言]