mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-13 05:31:02 +08:00
refactor posseg, added Posseg struct
This commit is contained in:
15
dictionary.go
Normal file
15
dictionary.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package jiebago
|
||||
|
||||
type Pair struct {
|
||||
Word string
|
||||
Flag string
|
||||
}
|
||||
|
||||
type Token struct {
|
||||
*Pair
|
||||
Freq float64
|
||||
}
|
||||
|
||||
type DictLoader interface {
|
||||
Add(*Token)
|
||||
}
|
||||
Reference in New Issue
Block a user