diff --git a/README.md b/README.md index 367820a01..45ad7a28e 100644 --- a/README.md +++ b/README.md @@ -130,12 +130,12 @@ System.out.println(HanLP.segment("你好,欢迎使用HanLP汉语处理包!") ### 2. 标准分词 ```java -List termList = StandTokenizer.segment("商品和服务"); +List termList = StandardTokenizer.segment("商品和服务"); System.out.println(termList); ``` - 说明 * **HanLP**中有一系列“开箱即用”的静态分词器,以`Tokenizer`结尾,在接下来的例子中会继续介绍。 - * `HanLP.segment`其实是对`StandTokenizer.segment`的包装。 + * `HanLP.segment`其实是对`StandardTokenizer.segment`的包装。 - 算法详解 * [《词图的生成》](http://www.hankcs.com/nlp/segment/the-word-graph-is-generated.html) diff --git a/src/test/java/com/hankcs/demo/DemoSegment.java b/src/test/java/com/hankcs/demo/DemoSegment.java index 8fec840df..5fe342a09 100644 --- a/src/test/java/com/hankcs/demo/DemoSegment.java +++ b/src/test/java/com/hankcs/demo/DemoSegment.java @@ -14,7 +14,6 @@ import com.hankcs.hanlp.HanLP; import com.hankcs.hanlp.seg.Segment; import com.hankcs.hanlp.seg.common.Term; -import com.hankcs.hanlp.tokenizer.StandardTokenizer; import java.util.List; diff --git a/src/test/java/com/hankcs/test/seg/TestSegment.java b/src/test/java/com/hankcs/test/seg/TestSegment.java index 163b4038d..7f90a71e9 100644 --- a/src/test/java/com/hankcs/test/seg/TestSegment.java +++ b/src/test/java/com/hankcs/test/seg/TestSegment.java @@ -37,7 +37,7 @@ public void testSeg() throws Exception HanLP.Config.enableDebug(); Segment segment = new DijkstraSegment().enableCustomDictionary(false); System.out.println(segment.seg( - "我喜欢陈膺奥" + "我喜欢陈膺奥" )); }