mirror of
https://github.com/fumiama/jieba.git
synced 2026-07-02 01:50:29 +08:00
allow user to manually set idf file and stop words file, corresponding to jieba commit 16d626d3477c8649d42094d7d7d4ae7c619783de
This commit is contained in:
@@ -183,6 +183,7 @@ var (
|
||||
|
||||
func TestExtractTags(t *testing.T) {
|
||||
jiebago.SetDictionary("../dict.txt")
|
||||
SetIdf("idf.txt")
|
||||
for index, sentence := range test_contents {
|
||||
result := ExtractTags(sentence, 20)
|
||||
if len(result) != len(Tags[index]) {
|
||||
|
||||
Reference in New Issue
Block a user