phonemizer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Primes []uint32

Functions

func NewDataset

func NewDataset(filename string, boosting bool) (out map[[3]string]*NewSample)

func NewDatasetAreg added in v0.1.6

func NewDatasetAreg(filename, otherfilename string, reverse bool, histogram []string) (out map[[2]string]*AregSample)

func NewHistogram added in v0.1.6

func NewHistogram(filename string, reverse bool) []string

Types

type AregSample added in v0.1.6

type AregSample struct {
	Src       string
	Dst       string
	Accept    bool
	Dimension int
}

func SplitAreg added in v0.1.6

func SplitAreg(out map[[2]string]*AregSample) (data []AregSample)

func (*AregSample) Feature added in v0.1.6

func (s *AregSample) Feature(n int) (ret uint32)

func (*AregSample) Key added in v0.1.6

func (n *AregSample) Key() [2]string

func (*AregSample) Output added in v0.1.6

func (s *AregSample) Output() uint16

func (*AregSample) Parity added in v0.1.6

func (s *AregSample) Parity() uint16

type NewSample added in v0.1.0

type NewSample struct {
	SrcA      []string
	DstA      []string
	SrcCut    []string
	SrcFut    []string
	Option    string
	Out       bool
	Len       int
	I         int
	J         int
	Dimension int
}

func Split

func Split(out map[[3]string]*NewSample) (data []NewSample)

func (*NewSample) Feature added in v0.1.0

func (s *NewSample) Feature(n int) uint32

func (*NewSample) Key added in v0.1.0

func (n *NewSample) Key() [3]string

func (*NewSample) OldSample added in v0.1.0

func (n *NewSample) OldSample() Sample

func (*NewSample) Output added in v0.1.0

func (s *NewSample) Output() uint16

func (*NewSample) Parity added in v0.1.0

func (s *NewSample) Parity() uint16

func (*NewSample) V1 added in v0.1.5

func (s *NewSample) V1() *NewSampleV1

func (*NewSample) V2 added in v0.1.7

func (s *NewSample) V2(dimension int) *NewSampleV2

type NewSampleV1 added in v0.1.5

type NewSampleV1 NewSample

func (*NewSampleV1) Feature added in v0.1.5

func (s *NewSampleV1) Feature(n int) uint32

func (*NewSampleV1) Output added in v0.1.5

func (s *NewSampleV1) Output() uint16

func (*NewSampleV1) Parity added in v0.1.5

func (s *NewSampleV1) Parity() uint16

type NewSampleV2 added in v0.1.7

type NewSampleV2 NewSample

func (*NewSampleV2) Feature added in v0.1.7

func (s *NewSampleV2) Feature(n int) (ret uint32)

func (*NewSampleV2) Output added in v0.1.7

func (s *NewSampleV2) Output() uint16

func (*NewSampleV2) Parity added in v0.1.7

func (s *NewSampleV2) Parity() uint16

type Output

type Output bool

func (*Output) Feature

func (s *Output) Feature(n int) uint32

type Sample

type Sample [14]uint32

func (*Sample) Feature

func (s *Sample) Feature(n int) uint32

func (*Sample) Output added in v0.1.0

func (s *Sample) Output() uint16

func (*Sample) Parity added in v0.1.0

func (s *Sample) Parity() uint16

Jump to

Keyboard shortcuts

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