Documentation
¶
Index ¶
- func GetTestUser() string
- func ModelS3PrefixAndPath(modelBase string, langISO string) (string, string)
- type AudioData
- type BibleBrainAudio
- type BibleBrainText
- type Compare
- type CompareChoice
- type CompareSettings
- type Database
- type Detail
- type DiacriticalChoice
- type MMSAdapter
- type MediaType
- type Output
- type Request
- type STTDecoder
- type STTFilters
- type SheetColumns
- type SpeechToText
- type Testament
- type TextData
- type Timestamps
- type Training
- type Training2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTestUser ¶
func GetTestUser() string
GetTestUser is used for testing when there is no full request object.
Types ¶
type AudioData ¶
type AudioData struct {
BibleBrain BibleBrainAudio `yaml:"bible_brain,omitempty" json:"bible_brain,omitempty"`
File string `yaml:"file,omitempty" json:"file,omitempty"`
AWSS3 string `yaml:"aws_s3,omitempty" json:"aws_s3,omitempty"`
POST string `yaml:"post,omitempty" json:"post,omitempty"`
NoAudio bool `yaml:"no_audio,omitempty" json:"no_audio,omitempty"`
}
func (AudioData) AnyBibleBrain ¶
type BibleBrainAudio ¶
type BibleBrainAudio struct {
MP3_64 bool `yaml:"mp3_64,omitempty" json:"mp3_64,omitempty"`
MP3_16 bool `yaml:"mp3_16,omitempty" json:"mp3_16,omitempty"`
OPUS bool `yaml:"opus,omitempty" json:"opus,omitempty"`
SetTypeCode string `yaml:"set_type_code,omitempty" json:"set_type_code,omitempty"`
}
func (BibleBrainAudio) AudioType ¶
func (b BibleBrainAudio) AudioType() (string, string)
type BibleBrainText ¶
type BibleBrainText struct {
TextUSXEdit bool `yaml:"text_usx_edit,omitempty" json:"text_usx_edit,omitempty"`
TextPlainEdit bool `yaml:"text_plain_edit,omitempty" json:"text_plain_edit,omitempty"`
TextPlain bool `yaml:"text_plain,omitempty" json:"text_plain,omitempty"`
}
func (BibleBrainText) TextType ¶
func (b BibleBrainText) TextType() MediaType
type Compare ¶
type Compare struct {
HTMLReport bool `yaml:"html_report,omitempty" json:"html_report,omitempty"`
BaseDataset string `yaml:"base_dataset,omitempty" json:"base_dataset,omitempty"`
GordonFilter int `yaml:"gordon_filter,omitempty" json:"gordon_filter,omitempty"`
CompareSettings CompareSettings `yaml:"compare_settings,omitempty" json:"compare_settings,omitempty"`
}
type CompareChoice ¶
type CompareSettings ¶
type CompareSettings struct {
LowerCase bool `yaml:"lower_case,omitempty" json:"lower_case,omitempty"`
RemovePromptChars bool `yaml:"remove_prompt_chars,omitempty" json:"remove_prompt_chars,omitempty"`
RemovePunctuation bool `yaml:"remove_punctuation,omitempty" json:"remove_punctuation,omitempty"`
DoubleQuotes CompareChoice `yaml:"double_quotes,omitempty" json:"double_quotes,omitempty"`
Apostrophe CompareChoice `yaml:"apostrophe,omitempty" json:"apostrophe,omitempty"`
Hyphen CompareChoice `yaml:"hyphen,omitempty" json:"hyphen,omitempty"`
DiacriticalMarks DiacriticalChoice `yaml:"diacritical_marks,omitempty" json:"diacritical_marks,omitempty"`
}
type DiacriticalChoice ¶
type DiacriticalChoice struct {
Remove bool `yaml:"remove,omitempty" json:"remove,omitempty"`
NormalizeNFC bool `yaml:"normalize_nfc,omitempty" json:"normalize_nfc,omitempty"`
NormalizeNFD bool `yaml:"normalize_nfd,omitempty" json:"normalize_nfd,omitempty"`
NormalizeNFKC bool `yaml:"normalize_nfkc,omitempty" json:"normalize_nfkc,omitempty"`
NormalizeNFKD bool `yaml:"normalize_nfkd,omitempty" json:"normalize_nfkd,omitempty"`
}
type MMSAdapter ¶
type MMSAdapter struct {
BatchMB int `yaml:"batch_mb,omitempty" json:"batch_mb,omitempty"`
NumEpochs int `yaml:"num_epochs,omitempty" json:"num_epochs,omitempty"`
LearningRate float64 `yaml:"learning_rate,omitempty" json:"learning_rate,omitempty"`
WarmupPct float64 `yaml:"warmup_pct,omitempty" json:"warmup_pct,omitempty"`
GradNormMax float64 `yaml:"grad_norm_max,omitempty" json:"grad_norm_max,omitempty"`
}
type MediaType ¶
type MediaType string
const ( Audio MediaType = "audio" AudioDrama MediaType = "audio_drama" TextUSXEdit MediaType = "text_usx_edit" TextUSFMEdit MediaType = "text_usfm_edit" TextPlainEdit MediaType = "text_plain_edit" TextPlain MediaType = "text_plain" TextScript MediaType = "text_script" TextCSV MediaType = "text_csv" TextSTT MediaType = "text_stt" TextNone MediaType = "" )
type Output ¶
type Output struct {
// Directory string `yaml:"directory" json:"directory"`
CSV bool `yaml:"csv,omitempty" json:"csv,omitempty"`
JSON bool `yaml:"json,omitempty" json:"json,omitempty"`
Sqlite bool `yaml:"sqlite,omitempty" json:"sqlite,omitempty"`
CompareReport bool `yaml:"compare_report,omitempty" json:"compare_report,omitempty"`
ProofingReport bool `yaml:"proofing_report,omitempty" json:"proofing_report,omitempty"`
TimestampData bool `yaml:"timestamp_data,omitempty" json:"timestamp_data,omitempty"`
}
type Request ¶
type Request struct {
IsNew bool `yaml:"is_new" json:"is_new"`
DatasetName string `yaml:"dataset_name" json:"dataset_name"`
Username string `yaml:"username" json:"username"`
BibleId string `yaml:"bible_id" json:"bible_id"`
LanguageISO string `yaml:"language_iso" json:"language_iso"`
AltLanguage string `yaml:"alt_language,omitempty" json:"alt_language,omitempty"`
Priority int `yaml:"priority,omitempty" json:"priority,omitempty"`
NotifyOk []string `yaml:"notify_ok" json:"notify_ok"`
NotifyErr []string `yaml:"notify_err" json:"notify_err"`
Output Output `yaml:"output,omitempty" json:"output,omitempty"`
Testament Testament `yaml:"testament,omitempty" json:"testament,omitempty"`
Database Database `yaml:"database,omitempty" json:"database,omitempty"`
AudioData AudioData `yaml:"audio_data,omitempty" json:"audio_data,omitempty"`
TextData TextData `yaml:"text_data,omitempty" json:"text_data,omitempty"`
SheetColumns SheetColumns `yaml:"sheet_columns,omitempty" json:"sheet_columns,omitempty"`
Timestamps Timestamps `yaml:"timestamps,omitempty" json:"timestamps,omitempty"`
Training2 Training2 `yaml:"training2,omitempty" json:"training2,omitempty"`
Training Training `yaml:"training,omitempty" json:"training,omitempty"`
SpeechToText SpeechToText `yaml:"speech_to_text,omitempty" json:"speech_to_text,omitempty"`
STTDecoder STTDecoder `yaml:"stt_decoder,omitempty" json:"stt_decoder,omitempty"`
STTFilters STTFilters `yaml:"stt_filters,omitempty" json:"stt_filters,omitempty"`
Detail Detail `yaml:"detail,omitempty" json:"detail,omitempty"`
// AudioProof AudioProof `yaml:"audio_proof,omitempty" json:"audio_proof,omitempty"`
Compare Compare `yaml:"compare,omitempty" json:"compare,omitempty"`
}
type STTDecoder ¶
type STTDecoder struct {
Greedy bool `yaml:"greedy,omitempty" json:"greedy,omitempty"`
Simple bool `yaml:"simple,omitempty" json:"simple,omitempty"`
Hotwords bool `yaml:"hotwords,omitempty" json:"hotwords,omitempty"`
Kenlm bool `yaml:"kenlm,omitempty" json:"kenlm,omitempty"`
NoSTTDecoder bool `yaml:"no_stt_decoder,omitempty" json:"no_stt_decoder,omitempty"`
}
func (STTDecoder) String ¶
func (d STTDecoder) String() string
type STTFilters ¶
type STTFilters struct {
SpaceHyphen bool `yaml:"space_hyphen,omitempty" json:"space_hyphen,omitempty"`
FABoundary bool `yaml:"fa_boundary,omitempty" json:"fa_boundary,omitempty"`
CharPairs bool `yaml:"char_pairs,omitempty" json:"char_pairs,omitempty"`
Hallucinations bool `yaml:"hallucinations,omitempty" json:"hallucinations,omitempty"`
MissingWords bool `yaml:"missing_words,omitempty" json:"missing_words,omitempty"`
}
type SheetColumns ¶
type SheetColumns struct {
BookCol int `yaml:"book_col,omitempty" json:"book_col,omitempty"`
ChapterCol int `yaml:"chapter_col,omitempty" json:"chapter_col,omitempty"`
VerseCol int `yaml:"verse_col,omitempty" json:"verse_col,omitempty"`
CharacterCol int `yaml:"character_col,omitempty" json:"character_col,omitempty"`
ActorCol int `yaml:"actor_col,omitempty" json:"actor_col,omitempty"`
LineCol int `yaml:"line_col,omitempty" json:"line_col,omitempty"`
TextCol int `yaml:"text_col,omitempty" json:"text_col,omitempty"`
}
func (SheetColumns) IsSet ¶
func (c SheetColumns) IsSet() bool
type SpeechToText ¶
type SpeechToText struct {
MMS bool `yaml:"mms_asr,omitempty" json:"mms_asr,omitempty"`
MMSAdapter bool `yaml:"adapter_asr,omitempty" json:"adapter_asr,omitempty"`
MMSASRAlign bool `yaml:"mms_asr_align,omitempty" json:"mms_asr_align,omitempty"`
QAAlign bool `yaml:"qa_align,omitempty" json:"qa_align,omitempty"`
NoSpeechToText bool `yaml:"no_speech_to_text,omitempty" json:"no_speech_to_text,omitempty"`
}
type Testament ¶
type Testament struct {
NT bool `yaml:"nt,omitempty" json:"nt,omitempty"`
NTBooks []string `yaml:"nt_books,omitempty" json:"nt_books,omitempty"`
OT bool `yaml:"ot,omitempty" json:"ot,omitempty"`
OTBooks []string `yaml:"ot_books,omitempty" json:"ot_books,omitempty"`
// contains filtered or unexported fields
}
func (*Testament) BuildBookMaps ¶
func (t *Testament) BuildBookMaps()
type TextData ¶
type TextData struct {
BibleBrain BibleBrainText `yaml:"bible_brain,omitempty" json:"bible_brain,omitempty"`
File string `yaml:"file,omitempty" json:"file,omitempty"`
AWSS3 string `yaml:"aws_s3,omitempty" json:"aws_s3,omitempty"`
POST string `yaml:"post,omitempty" json:"post,omitempty"`
NoText bool `yaml:"no_text,omitempty" json:"no_text,omitempty"`
}
func (TextData) AnyBibleBrain ¶
type Timestamps ¶
type Timestamps struct {
BibleBrain bool `yaml:"bible_brain,omitempty" json:"bible_brain,omitempty"`
MMSFAVerse bool `yaml:"mms_fa_verse,omitempty" json:"mms_fa_verse,omitempty"`
MMSAlign bool `yaml:"mms_align,omitempty" json:"mms_align,omitempty"`
NoTimestamps bool `yaml:"no_timestamps,omitempty" json:"no_timestamps,omitempty"`
}
type Training ¶
type Training struct {
RedoTraining bool `yaml:"redo_training,omitempty" json:"redo_training,omitempty"`
MMSAdapter MMSAdapter `yaml:"mms_adapter,omitempty" json:"mms_adapter,omitempty"`
NoTraining bool `yaml:"no_training,omitempty" json:"no_training,omitempty"`
}
type Training2 ¶
type Training2 struct {
RedoTraining bool `yaml:"redo_training,omitempty" json:"redo_training,omitempty"`
ModelBase string `yaml:"model_base,omitempty" json:"model_base,omitempty"`
SampleType string `yaml:"sample_type,omitempty" json:"sample_type,omitempty"`
FAPrunePct float64 `yaml:"fa_prune_pct,omitempty" json:"fa_prune_pct,omitempty"`
BatchMB int `yaml:"batch_mb,omitempty" json:"batch_mb,omitempty"`
NumEpochs int `yaml:"num_epochs,omitempty" json:"num_epochs,omitempty"`
LearningRate float64 `yaml:"learning_rate,omitempty" json:"learning_rate,omitempty"`
WarmupPct float64 `yaml:"warmup_pct,omitempty" json:"warmup_pct,omitempty"`
GradNormMax float64 `yaml:"grad_norm_max,omitempty" json:"grad_norm_max,omitempty"`
MinAudioSec float64 `yaml:"min_audio_sec,omitempty" json:"min_audio_sec,omitempty"`
UseBF16 bool `yaml:"use_bf16,omitempty" json:"use_bf16,omitempty"`
LoggingSteps int `yaml:"logging_steps,omitempty" json:"logging_steps,omitempty"`
NoTraining bool `yaml:"no_training,omitempty" json:"no_training,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.