Documentation ¶
Index ¶
- func GetSchemeFileDirectory() string
- type CorpusDetails
- type LearnStatus
- type SchemeDetails
- type Varnam
- func (v *Varnam) DeleteWord(text string) error
- func (v *Varnam) Destroy()
- func (v *Varnam) GetCorpusDetails() (*CorpusDetails, error)
- func (v *Varnam) GetSchemeFilePath() string
- func (v *Varnam) GetSuggestionsFilePath() string
- func (v *Varnam) ImportFromFile(filePath string) error
- func (v *Varnam) Learn(text string) error
- func (v *Varnam) LearnFromFile(filePath string) (*LearnStatus, error)
- func (v *Varnam) ReverseTransliterate(text string) (string, error)
- func (v *Varnam) Train(pattern, word string) error
- func (v *Varnam) Transliterate(text string) ([]string, error)
- type VarnamError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSchemeFileDirectory ¶
func GetSchemeFileDirectory() string
GetSchemeFileDirectory returns the folder where scheme file (.vst) are stored
Types ¶
type CorpusDetails ¶
type CorpusDetails struct {
WordsCount int `json:"wordsCount"`
}
CorpusDetails returns corpus details.
type SchemeDetails ¶
type SchemeDetails struct { LangCode string Identifier string DisplayName string Author string CompiledDate string IsStable bool }
SchemeDetails returns language and other changes.
func GetAllSchemeDetails ¶
func GetAllSchemeDetails() []*SchemeDetails
GetAllSchemeDetails returns all scheme related details.
type Varnam ¶
type Varnam struct {
// contains filtered or unexported fields
}
Varnam app binding.
func (*Varnam) DeleteWord ¶
DeleteWord from given input text.
func (*Varnam) GetCorpusDetails ¶
func (v *Varnam) GetCorpusDetails() (*CorpusDetails, error)
GetCorpusDetails will return corpus details.
func (*Varnam) GetSchemeFilePath ¶
GetSchemeFilePath returns the scheme file (.vst)
func (*Varnam) GetSuggestionsFilePath ¶
GetSuggestionsFilePath returns suggestions.
func (*Varnam) ImportFromFile ¶
ImportFromFile Import learnigns from file (varnam exported file)
func (*Varnam) LearnFromFile ¶
func (v *Varnam) LearnFromFile(filePath string) (*LearnStatus, error)
LearnFromFile learns from file from the given filepath.
func (*Varnam) ReverseTransliterate ¶
ReverseTransliterate given string.
type VarnamError ¶
type VarnamError struct {
// contains filtered or unexported fields
}
VarnamError satisfies error interface.
func (*VarnamError) Error ¶
func (e *VarnamError) Error() string
Click to show internal directories.
Click to hide internal directories.