Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWordNotFound = errors.New("word not found")
ErrWordNotFound returned if word not found in dict
Functions ¶
This section is empty.
Types ¶
type Form ¶
type Form struct {
Value string `xml:"t,attr"`
GrammemeNames []GrammemeName `xml:"g"`
}
Form represents lemma form
type GrammemeName ¶
type GrammemeName struct {
Value string `xml:"v,attr"`
}
GrammemeName represents name of grammeme in lemmas
type Lemma ¶
type Lemma struct {
ID int `xml:"id,attr"`
Rev int `xml:"rev,attr"`
Main Form `xml:"l"`
Forms []Form `xml:"f"`
}
Lemma represents lemma
type Morph ¶
type Morph struct {
// contains filtered or unexported fields
}
Morph is a morphological dict based at opencorpora data
type MorphData ¶
MorphData is a struct to encode and save
func (*MorphData) ImportFromReader ¶
ImportFromReader reads XML data from reader and saves in MorphData
func (*MorphData) ImportFromWeb ¶
ImportFromWeb imports data from opencorpora site
func (*MorphData) ImportFromXMLFile ¶
ImportFromXMLFile reads XML file and saves in MorphData
Click to show internal directories.
Click to hide internal directories.