Skip to content

Commit 92297db

Browse files
committed
fix test for ExtractWords with empty line
1 parent c85b1ea commit 92297db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kiwi_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ func TestExtractWordwithFile(t *testing.T) {
250250
kb := NewBuilder("./ModelGenerator", 0, KIWI_BUILD_DEFAULT)
251251
file, _ := os.Open("./example/test.txt")
252252

253-
wordInfos, _ := kb.ExtractWords(file, 2 /*=minCnt*/, 5 /*=maxWordLen*/, 0.0 /*=minScore*/, -25.0 /*=posThreshold*/)
253+
wordInfos, _ := kb.ExtractWords(file, 10 /*=minCnt*/, 5 /*=maxWordLen*/, 0.0 /*=minScore*/, -25.0 /*=posThreshold*/)
254254
assert.Equal(t, WordInfo{
255-
Form: "민주적", Freq: 4, POSScore: -3.0096114, Score: 0.1159699,
255+
Form: "무위원", Freq: 17, POSScore: -1.7342134, Score: 0.69981515,
256256
}, wordInfos[0])
257257
assert.Equal(t, 0, kb.Close())
258258
}

0 commit comments

Comments
 (0)