mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-18 00:50:26 +08:00
优化 dict, add fs.File 支持
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
func Example() {
|
||||
var seg posseg.Segmenter
|
||||
seg.LoadDictionary("../dict.txt")
|
||||
seg.LoadDictionaryAt("../dict.txt")
|
||||
|
||||
for segment := range seg.Cut("我爱北京天安门", true) {
|
||||
fmt.Printf("%s %s\n", segment.Text(), segment.Pos())
|
||||
|
||||
Reference in New Issue
Block a user