Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SegmentsToSlice ¶
Types ¶
type Text ¶
type Text []byte
字串类型,可以用来表达
- 一个字元,比如"中"又如"国", 英文的一个字元是一个词
- 一个分词,比如"中国"又如"人口"
- 一段文字,比如"中国有十三亿人口"
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
一个分词
type WordInfo ¶
type WordInfo struct {
Word string
IsEntity bool
wenwen_seg.QueryTermInfo
}
Click to show internal directories.
Click to hide internal directories.