Documentation ¶
Overview ¶
Chinese-English dictionary type definitions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DictionaryConfig ¶ added in v0.0.23
DictionaryConfig encapsulates parameters for dictionary configuration
type Word ¶
A top level word structure that may include multiple word senses
func CloneWord ¶ added in v0.0.18
Clones the headword definition without the attached array of word senses
func (Word) IsProperNoun ¶ added in v0.0.21
IsProperNoun tests whether the word is a proper noun. If the majority of word senses are proper nouns, then the word is marked as a proper noun.
type WordSense ¶
type WordSense struct {
Id, HeadwordId int
Simplified, Traditional, Pinyin, English, Grammar, Concept, ConceptCN, Domain,
DomainCN, Subdomain, SubdomainCN, Image, MP3, Notes string
}
Defines a single sense of a Chinese word
func (*WordSense) IsFunctionWord ¶ added in v0.0.19
Tests whether the word is a function word
type WordSenses ¶ added in v0.0.22
type WordSenses []WordSense
May be sorted into descending order with most frequent bigram first
func (WordSenses) Len ¶ added in v0.0.22
func (senses WordSenses) Len() int
func (WordSenses) Less ¶ added in v0.0.22
func (senses WordSenses) Less(i, j int) bool
func (WordSenses) Swap ¶ added in v0.0.22
func (senses WordSenses) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.