Skip to content

Commit

Permalink
Merge pull request huichen#15 from tukdesk/fix/segments_index
Browse files Browse the repository at this point in the history
fix: 获取正确的子分词
  • Loading branch information
huichen committed Sep 2, 2015
2 parents a8cb486 + b22a2b9 commit 8631996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segmenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (seg *Segmenter) LoadDictionary(files string) {
iSegmentsToAdd := 0
for iToken := 0; iToken < len(segments); iToken++ {
if len(segments[iToken].token.text) > 1 {
token.segments[iSegmentsToAdd] = &segments[iSegmentsToAdd]
token.segments[iSegmentsToAdd] = &segments[iToken]
iSegmentsToAdd++
}
}
Expand Down

0 comments on commit 8631996

Please sign in to comment.