Versions in this module Expand all Collapse all v0 v0.1.0 Nov 29, 2023 Changes in this version + const DomainName + const LocalCompiledFilename + const LocalSourceFilename + const LocalUnpackedFilename + const RemoteURL + var ErrControlledStop = fmt.Errorf("%w: controlled stop", Error) + var Error = errors.New("opencorpora") + type Attr []xml.Attr + func (attributesList Attr) GetInt(name string) (val int, err error) + func (attributesList Attr) GetString(name string) (val string, err error) + type Category struct + VAttr dag.TagName + func (x Category) String() string + type CategoryList []*Category + func (c CategoryList) GrammemeNames() []dag.TagName + func (c CategoryList) String() string + type Dictionary struct + Grammemes *Grammemes + Lemmata *Lemmata + Links *Links + Linktypes *LinkTypes + Restrictions *Restrictions + RevisionAttr int + VersionAttr float64 + type Grammeme struct + Alias string + Description string + Name dag.TagName + ParentAttr dag.TagName + func (g Grammeme) String() string + func (g Grammeme) Tag() dag.Tag + type Grammemes struct + Grammeme []*Grammeme + func (x Grammemes) String() string + type Lemma struct + F WordFormList + IdAttr int + L WordForm + RevAttr int + func (lemma Lemma) String() string + type LemmaList []*Lemma + func (l LemmaList) Search(word string) (lemmaList []Lemma) + type Lemmata struct + Items LemmaList + func (l Lemmata) Search(word string) (lemmaList []Lemma) + type Link struct + FromAttr uint32 + IdAttr uint32 + ToAttr uint32 + TypeAttr uint32 + type LinkList []*Link + type LinkType struct + IDAttr int + type LinkTypes struct + Type []*LinkType + type Links struct + Items LinkList + type Loader struct + func NewLoader(dataPath string) *Loader + func (loader *Loader) LoadIndex() (mainIndex *index.Index, err error) + func (loader *Loader) ParseUpdate(fromFile string, toFile string) (err error) + func (loader *Loader) SaveIndex(mainIndex *index.Index, toFile string) (err error) + func (loader *Loader) SetDataPath(dataPath string) + func (loader Loader) DataPath() string + func (loader Loader) DownloadUpdate() (updated bool, err error) + func (loader Loader) IsDownloadExists() bool + func (loader Loader) IsUnpackedExists() bool + func (loader Loader) IsUpdateRequired() (bool, error) + func (loader Loader) UnpackUpdate() (err error) + func (loader Loader) Update(forceRecompile bool) (err error) + type Parser struct + func (parser *Parser) ProcessCharData(data xml.CharData) error + func (parser *Parser) ProcessComment(_ xml.Comment) error + func (parser *Parser) ProcessDirective(_ xml.Directive) error + func (parser *Parser) ProcessEndElement(element xml.EndElement) error + func (parser *Parser) ProcessProcInst(_ xml.ProcInst) error + func (parser *Parser) ProcessStartElement(element xml.StartElement) error + func (parser *Parser) SetMaxLemmas(maxLemmas int) + type Restriction struct + AutoAttr int + Left *RestrictionItem + Right *RestrictionItem + TypeAttr string + type RestrictionItem struct + TypeAttr string + type Restrictions struct + Restr []*Restriction + type WordForm struct + Form string + G CategoryList + func (x WordForm) GetTagsFromSet() []dag.TagName + func (x WordForm) String() string + type WordFormList []*WordForm