Skip to content

Commit

Permalink
大幅优化了HMM-Viterbi分词,训练了新CRF分词模型,小版本+1
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Apr 28, 2015
1 parent fe83c69 commit bb18f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/hankcs/demo/DemoCRFSegment.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@

/**
* CRF分词(在最新训练的未压缩100MB模型下,能够取得较好的效果,可以投入生产环境)
*
* @author hankcs
*/
public class DemoCRFSegment
{
public static void main(String[] args)
{
// HanLP.Config.enableDebug();
HanLP.Config.ShowTermNature = false;
HanLP.Config.ShowTermNature = false; // 关闭词性显示
Segment segment = new CRFSegment();
segment.enablePartOfSpeechTagging(true);
String[] sentenceArray = new String[]
Expand Down

0 comments on commit bb18f95

Please sign in to comment.