Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { OriginalText string ReturnSAMPA bool Text string Words []*ProcessedWord Result []*api.ResultWord }
Data working data for one request
type MainWorker ¶
type MainWorker struct {
// contains filtered or unexported fields
}
MainWorker does transcription work
func (*MainWorker) Process ¶
func (mw *MainWorker) Process(input string, returnSAMPA bool) ([]*api.ResultWord, error)
Process is main method
type ProcessedWord ¶
type ProcessedWord struct { Tagged TaggedWord AccentVariant *extapi.AccentVariant AccentCount int Mihs []string TranscriptionCount int Transcription string IPA string Clitic *Clitic }
ProcessedWord keeps one word info
type StringTypeEnum ¶
type StringTypeEnum int
StringTypeEnum represent possible string types
const ( //Word value Word StringTypeEnum = iota + 1 //OtherWord value OtherWord //Separator value Separator //Space value Space //SentenceEnd value - data normalized by user SentenceEnd )
type TaggedWord ¶
type TaggedWord struct { Type StringTypeEnum String string Mi string Lemma string }
TaggedWord - tagger's result
Click to show internal directories.
Click to hide internal directories.