Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
sego
✓ github.com/huichen/sego
Segment Chinese text into words.
package main
import (
"fmt"
"github.com/huichen/sego"
)
func main() {
seg := sego.NewSegmenter()
seg.LoadDictionary("dictionary.txt")
words := seg.Segment([]byte("中文分词测试"))
fmt.Println(words)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20210824061530-c87651ea5c76latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.