yanyiwu / gojieba

"结巴"中文分词的Golang版本
MIT License
2.45k stars 303 forks source link

x.Addword 不生效 #89

Closed duanzhenyu001 closed 2 months ago

duanzhenyu001 commented 2 years ago
divider = gojieba.NewJieba()
defer divider.Free()
divider.AddWord("望城燃气")
divider.AddWord("国航")
divider.AddWord("桑德")
divider.AddWord("新能源")
s := "河北桑德新能源动力科技有限公司"
words := divider.Tag(s)
fmt.Println(words)

/////[河北/ns 桑德/x 新/a 能源动力/n 科技/n 有限公司/n]

github-actions[bot] commented 2 months ago

This issue has not been updated for over 1 year and will be marked as stale. If the issue still exists, please comment or update the issue, otherwise it will be closed after 7 days.

github-actions[bot] commented 2 months ago

This issue has been automatically closed due to inactivity. If the issue still exists, please reopen it.