interfaces

package
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DictGetter

type DictGetter interface {
	GetDict(lang, filename string) ([]byte, error)
	IsOldFormat(magic []byte) bool
}

type IpaFlavor

type IpaFlavor interface {
	GetIpaFlavors() map[string]map[string]string
}

type Phonemizer

type Phonemizer interface {
	Map(lang string) map[string]map[string]struct{}
	SrcMulti(lang string) map[string]struct{}
	DstMulti(lang string) map[string]struct{}
	SrcMultiSuffix(lang string) map[string]struct{}
	DstMultiSuffix(lang string) map[string]struct{}
}

type PolicyMaxWords

type PolicyMaxWords interface {
	GetPolicyMaxWords() int
}

Policy max words per request

type PrePhonemizationSteps

type PrePhonemizationSteps interface {
	Len(lang string) int
	IsNormalize(lang string, n int) bool
	IsTrim(lang string, n int) bool
	IsToLower(lang string, n int) bool
	GetNormalize(lang string, n int) string
	GetTrim(lang string, n int) string
}

type SpacerSplitterSteps

type SpacerSplitterSteps interface {
	Len(lang string) int
	LeftRegexp(lang string, n int) *regexp.Regexp
	RightRegexp(lang string, n int) *regexp.Regexp
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL