Documentation ¶
Index ¶
- type Darts
- func Build(key [][]rune, freq []int, key2ObjectMap map[string]string) Darts
- func BuildFromDAWG(keys [][]rune, freq []int) Darts
- func Generate(list []map[string]string, useDAWG bool) (Darts, error)
- func Import(inFile, outFile string, useDAWG bool) (Darts, error)
- func Load(filename string) (Darts, error)
- func (d Darts) CommonPrefixSearch(key []rune, nodePos int) (results []ResultPair)
- func (d *Darts) ContainMatch(key []rune, nodePos int) (bool, error)
- func (d Darts) ExactMatchSearch(key []rune, nodePos int) bool
- func (d *Darts) MultiSearch(key []rune, nodePos int) ([]string, error)
- func (d Darts) UpdateThesaurus(keys [][]rune)
- type Pair
- type PairList
- type ResultPair
- type SubWord
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Darts ¶
func BuildFromDAWG ¶
func (Darts) CommonPrefixSearch ¶
func (d Darts) CommonPrefixSearch(key []rune, nodePos int) (results []ResultPair)
func (Darts) UpdateThesaurus ¶
type PairList ¶
type PairList []Pair
A slice of Pairs that implements sort.Interface to sort by Value.
type ResultPair ¶
Click to show internal directories.
Click to hide internal directories.