Registry / utility / huichen-sego

huichen-sego

JSON →
library0.0.0-20210824061530-c87651ea5c76gogounverified

Go中文分词: A Chinese word segmentation library for Go.

go get github.com/huichen/sego
INSTALL
IMPORT
SIG · HUICHEN-SEGO
H
huichen-sego
utilitygov0.0.0-20210824061530-c87651ea5c76
harness data pending
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.

Agent activity
10 hits · last 30 days
node
10
Resources
huichen-sego — go get huichen-sego · libregistry