diff --git a/src/main/java/org/wltea/analyzer/dic/Hit.java b/src/main/java/org/wltea/analyzer/dic/Hit.java index d46cd32..a3c3899 100644 --- a/src/main/java/org/wltea/analyzer/dic/Hit.java +++ b/src/main/java/org/wltea/analyzer/dic/Hit.java @@ -32,24 +32,33 @@ package org.wltea.analyzer.dic; */ @SuppressWarnings("unused") public class Hit { - //Hit不匹配 + /** + * Hit不匹配 + */ private static final int UNMATCH = 0x00000000; - //Hit完全匹配 + /** + * Hit完全匹配 + */ private static final int MATCH = 0x00000001; - //Hit前缀匹配 + /** + * Hit前缀匹配 + */ private static final int PREFIX = 0x00000010; - //该HIT当前状态,默认未匹配 + /** + * 该HIT当前状态,默认未匹配 + */ private int hitState = UNMATCH; - - //记录词典匹配过程中,当前匹配到的词典分支节点 + /** + * 记录词典匹配过程中,当前匹配到的词典分支节点 + */ private DictSegment matchedDictSegment; - /* + /** * 词段开始位置 */ private int begin; - /* + /** * 词段的结束位置 */ private int end; @@ -86,9 +95,7 @@ public class Hit { public boolean isUnmatch() { return this.hitState == UNMATCH ; } - /** - * - */ + void setUnmatch() { this.hitState = UNMATCH; }