Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/huichen/sego
/ Text
Method
Text
token.go:30–32 ·
view source on GitHub ↗
返回分词文本
()
Source
from the content-addressed store, hash-verified
28
29
// 返回分词文本
30
func
(token *Token) Text() string {
31
return
textSliceToString(token.text)
32
}
33
34
// 返回分词在语料库中的词频
35
func
(token *Token) Frequency() int {
Callers
5
Test_Token_Split
Function · 0.80
SegmentsToSlice
Function · 0.80
main
Function · 0.80
main
Function · 0.80
JsonRpcServer
Function · 0.80
Calls
1
textSliceToString
Function · 0.85
Tested by
1
Test_Token_Split
Function · 0.64