x.AddWord问题
f2xb opened this issue · 0 comments
f2xb commented
`
x := gojieba.NewJieba()
defer x.Free()
s = "你好世界, Hello world,比特币,新世界,新部署"
x.AddWord("比特币")
x.AddWord("新部署")
words = x.Cut(s, true)
fmt.Println(s)
fmt.Println("添加词典后,精确模式:", strings.Join(words, "/"))
`
输出
你好世界, Hello world,比特币,新世界,新部署
添加词典后,精确模式: 你好/世界/,/ /Hello/ /world/,/比特币/,/新世界/,/新/部署
x.AddWord("新部署") 未起作用