universal_generator

package
v0.0.0-...-4d00197 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input []string

Input is a set of interchangeable words, phonemes, or other units

type Output

type Output []string

Output is a sequence of words, phonemes, units, generated from a template. From one template, you will get a slice of Outputs.

func (Output) Join

func (o Output) Join(separator string) string

Join the elements with the specified separator string

func (Output) String

func (o Output) String() string

String generates an output string with all elements joined by white space

type Template

type Template []Input

Template is a sequence of Inputs that can form a complete utterance or string or similar. Usage examples in universal_generator_test.go

func (Template) Expand

func (t Template) Expand() []Output

Expand the input template

Jump to

Keyboard shortcuts

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