Skip to content

Commit

Permalink
文档
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Feb 4, 2015
1 parent 2228b15 commit 0570952
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ System.out.println(HanLP.segment("你好,欢迎使用HanLP汉语处理包!")
### 2. 标准分词

```java
List<Term> termList = StandTokenizer.segment("商品和服务");
List<Term> 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)

Expand Down
1 change: 0 additions & 1 deletion src/test/java/com/hankcs/demo/DemoSegment.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/hankcs/test/seg/TestSegment.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void testSeg() throws Exception
HanLP.Config.enableDebug();
Segment segment = new DijkstraSegment().enableCustomDictionary(false);
System.out.println(segment.seg(
"我喜欢陈膺奥"
"我喜欢陈膺奥"
));
}

Expand Down

0 comments on commit 0570952

Please sign in to comment.