mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-12 05:00:24 +08:00
优化 dict, add fs.File 支持
This commit is contained in:
@@ -2,12 +2,12 @@ package dictionary
|
||||
|
||||
// Token represents a Chinese word with (optional) frequency and POS.
|
||||
type Token struct {
|
||||
text string
|
||||
frequency float64
|
||||
text string
|
||||
pos string
|
||||
}
|
||||
|
||||
//Text returns token's text.
|
||||
// Text returns token's text.
|
||||
func (t Token) Text() string {
|
||||
return t.text
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user