详细内容查看:
https://blog.csdn.net/qq_40374604/article/details/83418856
https://my.oschina.net/apdplat/blog/228619#OSC_h4_8
Maven依赖:
在pom.xml中指定dependency,可用版本有1.0、1.1、1.2,1.3:
<dependencies> <dependency> <groupId>org.apdplat</groupId> <artifactId>word</artifactId> <version>1.2</version> </dependency> </dependencies>
word分词简单实例
public static void main( String[] args ) { //System.out.println( "Hello World!" ); List<Word> words = WordSegmenter.seg("杨尚川是APDPlat应用级产品开发平台的作者"); //List<Word> words = WordSegmenter.segWithStopWords("杨尚川是APDPlat应用级产品开发平台的作者"); System.out.println(words); }