mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-16 07:40:24 +08:00
small refactor, updated REAMDE
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
var sentence = "我爱北京天安门"
|
||||
|
||||
func main() {
|
||||
jiebago.SetDictionary("/Path/to/default/dictionary/file")
|
||||
posseg.SetDictionary("/Path/to/default/dictionary/file")
|
||||
for _, wt := range posseg.Cut(sentence, true) {
|
||||
fmt.Printf("%s %s\n", wt.Word, wt.Tag)
|
||||
}
|
||||
@@ -195,4 +195,4 @@ Tokenize
|
||||
|
||||
许可证
|
||||
======
|
||||
MIT: http://wangbin.mit-license.org
|
||||
MIT: http://wangbin.mit-license.org
|
||||
|
||||
Reference in New Issue
Block a user