1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-28 16:10:32 +08:00

allow user to manually set idf file and stop words file, corresponding to jieba commit 16d626d3477c8649d42094d7d7d4ae7c619783de

This commit is contained in:
Wang Bin
2014-08-14 12:05:29 +08:00
parent d2acf94693
commit 052c571015
5 changed files with 270203 additions and 270171 deletions

View File

@@ -79,6 +79,7 @@
func main() {
jiebago.SetDictionary("/Path/to/default/dictionary/file")
analyse.SetIdf("/Path/to/idf/file")
fmt.Println(strings.Join(analyse.ExtractTags(sentence, 20), "/ "))
}