mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-05 00:32:51 +08:00
move tokenizer.go to top directory
This commit is contained in:
@@ -17,3 +17,7 @@ func (t Token) Frequency() float64 {
|
||||
func (t Token) Pos() string {
|
||||
return t.pos
|
||||
}
|
||||
|
||||
func NewToken(text string, frequency float64, pos string) Token {
|
||||
return Token{text: text, frequency: frequency, pos: pos}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user