Documentation ¶
Index ¶
- func CompareUtf16String(a []uint16, b []uint16) int
- func ConvertHan2Zen(source string) string
- func ConvertHira2Kata(source string) string
- func ConvertZen2Han(source string) string
- func Query(word string, dict *CompactDictionary, operator *RegexOperator) string
- func QueryAWord(word string, dict *CompactDictionary, operator *RegexOperator) string
- type BitList
- type BitVector
- type CompactDictionary
- type KeyValuePair
- type Level
- type LoudsTrie
- func (this *LoudsTrie) FirstChild(x uint32) int
- func (this *LoudsTrie) Lookup(key []uint16) int
- func (this *LoudsTrie) Parent(x uint32) uint32
- func (this *LoudsTrie) PredictiveSearch(index int, f func(int))
- func (this *LoudsTrie) ReverseLookup(index uint32, key *[]uint16) int
- func (this *LoudsTrie) Size() int
- func (this *LoudsTrie) Traverse(index uint32, c uint16) int
- type LoudsTrieBuilder
- type RegexGenerator
- type RegexNode
- type RegexOperator
- type RomajiPredictiveResult
- type RomajiProcessor
- type RomanEntry
- type SimpleDictionary
- type TernaryRegexGenerator
- type TernaryRegexNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareUtf16String ¶
func ConvertHan2Zen ¶
func ConvertHira2Kata ¶
func ConvertZen2Han ¶
func Query ¶
func Query(word string, dict *CompactDictionary, operator *RegexOperator) string
func QueryAWord ¶
func QueryAWord(word string, dict *CompactDictionary, operator *RegexOperator) string
Types ¶
type BitVector ¶
type BitVector struct {
// contains filtered or unexported fields
}
func NewBitVector ¶
func (*BitVector) NextClearBit ¶
type CompactDictionary ¶
type CompactDictionary struct {
// contains filtered or unexported fields
}
func BuildDictionaryFromMigemoDictFile ¶
func BuildDictionaryFromMigemoDictFile(fp io.Reader) *CompactDictionary
func NewCompactDictionary ¶
func NewCompactDictionary(buffer []uint8) *CompactDictionary
func (*CompactDictionary) GetMappingBitVector ¶
func (this *CompactDictionary) GetMappingBitVector() *BitVector
func (*CompactDictionary) PredictiveSearch ¶
func (this *CompactDictionary) PredictiveSearch(key []uint16, f func([]uint16))
func (*CompactDictionary) Save ¶
func (this *CompactDictionary) Save(fp *os.File)
func (*CompactDictionary) Search ¶
func (this *CompactDictionary) Search(key []uint16, f func([]uint16))
type KeyValuePair ¶
type KeyValuePair struct {
// contains filtered or unexported fields
}
type LoudsTrie ¶
type LoudsTrie struct {
// contains filtered or unexported fields
}
func NewLoudsTrie ¶
func (*LoudsTrie) FirstChild ¶
func (*LoudsTrie) PredictiveSearch ¶
func (*LoudsTrie) ReverseLookup ¶
type LoudsTrieBuilder ¶
type LoudsTrieBuilder struct {
// contains filtered or unexported fields
}
func NewLoudsTrieBuilder ¶
func NewLoudsTrieBuilder() *LoudsTrieBuilder
func (*LoudsTrieBuilder) Add ¶
func (self *LoudsTrieBuilder) Add(key []uint16) error
func (*LoudsTrieBuilder) Build ¶
func (self *LoudsTrieBuilder) Build() *LoudsTrie
type RegexGenerator ¶
type RegexGenerator struct {
// contains filtered or unexported fields
}
func NewRegexGenerator ¶
func NewRegexGenerator(operator RegexOperator) *RegexGenerator
func (*RegexGenerator) Add ¶
func (this *RegexGenerator) Add(word []uint16)
func (*RegexGenerator) Generate ¶
func (this *RegexGenerator) Generate() []uint16
type RegexNode ¶
type RegexNode struct {
// contains filtered or unexported fields
}
func NewRegexNode ¶
type RegexOperator ¶
type RegexOperator struct {
// contains filtered or unexported fields
}
func NewRegexOperator ¶
type RomajiPredictiveResult ¶
type RomajiProcessor ¶
type RomajiProcessor struct {
// contains filtered or unexported fields
}
func NewRomajiProcessor ¶
func NewRomajiProcessor() *RomajiProcessor
func (*RomajiProcessor) RomajiToHiragana ¶
func (this *RomajiProcessor) RomajiToHiragana(romaji string) string
func (*RomajiProcessor) RomajiToHiraganaPredictively ¶
func (this *RomajiProcessor) RomajiToHiraganaPredictively(romaji string) RomajiPredictiveResult
type RomanEntry ¶
type RomanEntry struct {
// contains filtered or unexported fields
}
func NewRomanEntry ¶
func NewRomanEntry(roman string, hiragana string, remain int) *RomanEntry
type SimpleDictionary ¶
type SimpleDictionary struct {
// contains filtered or unexported fields
}
func BuildSimpleDictionary ¶
func BuildSimpleDictionary(file string) *SimpleDictionary
func (*SimpleDictionary) PredictiveSearch ¶
func (this *SimpleDictionary) PredictiveSearch(hiragana string) []string
type TernaryRegexGenerator ¶
type TernaryRegexGenerator struct {
// contains filtered or unexported fields
}
func NewTernaryRegexGenerator ¶
func NewTernaryRegexGenerator(operator RegexOperator) *TernaryRegexGenerator
func (*TernaryRegexGenerator) Add ¶
func (this *TernaryRegexGenerator) Add(word []uint16)
func (*TernaryRegexGenerator) Generate ¶
func (this *TernaryRegexGenerator) Generate() []uint16
type TernaryRegexNode ¶
type TernaryRegexNode struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.