Versions in this module Expand all Collapse all v1 v1.0.0 Jun 13, 2020 Changes in this version + const KoDicPath + const UserDicColumnSize + func NewContents(b []byte) [][]string + type ConnectionTable struct + Col int64 + Row int64 + Vec []int16 + func LoadConnectionTable(r io.Reader) (t ConnectionTable, err error) + func (t *ConnectionTable) At(row, col int) int16 + func (t ConnectionTable) WriteTo(w io.Writer) (n int64, err error) + type Contents [][]string + func (c Contents) WriteTo(w io.Writer) (n int64, err error) + type Dic struct + CharCategory []byte + CharClass []string + Connection ConnectionTable + Contents [][]string + GroupList []bool + Index IndexTable + InvokeList []bool + Morphs []Morph + POSTable POSTable + UnkContents [][]string + UnkIndex map[int32]int32 + UnkIndexDup map[int32]int32 + UnkMorphs []Morph + func Load(path string) (d *Dic, err error) + func SysDic() *Dic + func SysDicKO() *Dic + func SysDicKOSimple() *Dic + func SysDicSimple() *Dic + func (d Dic) CharacterCategory(r rune) byte + type IndexTable struct + Da da.DoubleArray + Dup map[int32]int32 + func BuildIndexTable(sortedKeywords []string) (IndexTable, error) + func ReadIndexTable(r io.Reader) (IndexTable, error) + func (idx IndexTable) CommonPrefixSearch(input string) (lens []int, ids [][]int) + func (idx IndexTable) CommonPrefixSearchCallback(input string, callback func(id, l int)) + func (idx IndexTable) Search(input string) []int + func (idx IndexTable) WriteTo(w io.Writer) (n int64, err error) + type Morph struct + LeftID int16 + RightID int16 + Weight int16 + func LoadMorphSlice(r io.Reader) ([]Morph, error) + type MorphSlice []Morph + func (m MorphSlice) WriteTo(w io.Writer) (n int64, err error) + type POS []POSID + type POSID int32 + type POSMap map[string]POSID + func (p POSMap) Add(pos []string) POS + func (p POSMap) List() []string + type POSTable struct + NameList []string + POSs []POS + func ReadPOSTable(r io.Reader) (POSTable, error) + func (p POSTable) WriteTo(w io.Writer) (int64, error) + type Trie interface + CommonPrefixSearch func(input string) (lens []int, outputs [][]int32) + CommonPrefixSearchCallback func(input string, callback func(id, l int)) + PrefixSearch func(input string) (length int, output []int32) + Search func(input string) []int32 + type UserDic struct + Contents []UserDicContent + Index IndexTable + func NewUserDic(path string) (udic *UserDic, err error) + type UserDicContent struct + Pos string + Tokens []string + Yomi []string