word分詞--例項---用法
阿新 • • 發佈:2018-11-02
詳細內容檢視:
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); }