Skip to content

Commit

Permalink
健壮化
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Jul 12, 2015
1 parent b219c3a commit cf14be6
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 @@ -235,6 +235,7 @@ protected static List<Vertex> combineByCustomDictionary(List<Vertex> vertexList)
{
for (int i = 0; i < wordNet.length; ++i)
{
if (wordNet[i] == null) continue;
BaseNode<CoreDictionary.Attribute> state = CustomDictionary.trie.transition(wordNet[i].realWord.toCharArray(), 0);
if (state != null)
{
Expand Down

0 comments on commit cf14be6

Please sign in to comment.