oneword

package
v0.0.0-...-abc66c6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Word        string
	ReturnSAMPA bool

	Words []*WorkingWord

	Result *api.WordInfo
}

Data working data for one word processing

type MainWorker

type MainWorker struct {
	// contains filtered or unexported fields
}

MainWorker does transcription work

func (*MainWorker) Add

func (mw *MainWorker) Add(pr Processor)

Add adds a processor to the end

func (*MainWorker) Process

func (mw *MainWorker) Process(input string, returnSAMPA bool) (*api.WordInfo, error)

Process is main method

type Processor

type Processor interface {
	Process(*Data) error
}

Processor does one specific step

type WorkingWord

type WorkingWord struct {
	Meaning string
	MI      string
	Accent  int
	Syll    string
	Lemma   string

	Transcriptions []string
	IPAs           []string
}

WorkingWord structure for one working word

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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