Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LanguagePack ¶
LanguagePack is what each language should implement
type Lemmatizer ¶
type Lemmatizer struct {
// contains filtered or unexported fields
}
Lemmatizer is the key to lemmatizing a word in a language
func (*Lemmatizer) InDict ¶
func (l *Lemmatizer) InDict(word string) bool
InDict checks if a certain word is in the dictionary
func (*Lemmatizer) Lemma ¶
func (l *Lemmatizer) Lemma(word string) string
Lemma gets one of the base forms of a word
func (*Lemmatizer) LemmaLower ¶
func (l *Lemmatizer) LemmaLower(word string) string
LemmaLower gets one of the base forms of a lower case word expects `word` to be lowercased
func (*Lemmatizer) Lemmas ¶
func (l *Lemmatizer) Lemmas(word string) (out []string)
Lemmas gets all the base forms of a word, if multiple exist
Click to show internal directories.
Click to hide internal directories.