Skip to content

Commit

Permalink
修复数词识别导致的潜在问题:hankcs#150
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Mar 11, 2016
1 parent fff29f5 commit 387b5a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/hankcs/hanlp/seg/Segment.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ protected void mergeNumberQuantifier(List<Vertex> termList, WordNet wordNetAll,
if (sbQuantifier.length() != pre.realWord.length())
{
pre.realWord = sbQuantifier.toString();
pre.word = Predefine.TAG_NUMBER;
pre.wordID = CoreDictionary.M_WORD_ID;
sbQuantifier.setLength(0);
}
}
Expand Down

0 comments on commit 387b5a0

Please sign in to comment.