Skip to content

Commit

Permalink
修正数词识别的问题:hankcs#150 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Mar 12, 2016
1 parent d7be4f2 commit ed1b9a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/hankcs/hanlp/seg/Segment.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ protected void mergeNumberQuantifier(List<Vertex> termList, WordNet wordNetAll,
pre.realWord = sbQuantifier.toString();
pre.word = Predefine.TAG_NUMBER;
pre.wordID = CoreDictionary.M_WORD_ID;
cur.from = null; // 在修改了节点之后,将后向节点清空
sbQuantifier.setLength(0);
}
}
Expand Down

0 comments on commit ed1b9a6

Please sign in to comment.