validation

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const CompareRptCutoff = 2

Variables

This section is empty.

Functions

func Process

func Process(database db.DBAdapter, req request.Request) ([]db.Output, *log.Status)

func ReadAudioErrorData

func ReadAudioErrorData(ctx context.Context, datasetName string, s3AudioPath string) ([]audioError, *log.Status)

func SelectPhraseData

func SelectPhraseData(database db.DBAdapter) (phraseData, *log.Status)

func SelectPrunedData

func SelectPrunedData(database db.DBAdapter) (map[int64]prunedVerse, *log.Status)

func SelectVerseFARank

func SelectVerseFARank(database db.DBAdapter) (map[int64]faRank, *log.Status)

SelectVerseFARank ranks verses exactly as cmd/training/wav2vec2 VerseDataPruner does (min word fa_score, ties by script_id, headings excluded), so a percentile at or below pctExcludePruneData means the verse was FA pruned.

func SelectVerses

func SelectVerses(database db.DBAdapter) ([]generic.Verse2, *log.Status)

SelectVerses is pulling in all kinds of not needed data from the qa_align tables. The only data that is used by this module from this data is script_id, book_id, chapter_num, verse_str, text pulled from words table, and transcript from scripts_qa_align.

func UsesPhrasePruning

func UsesPhrasePruning(database db.DBAdapter) (bool, *log.Status)

UsesPhrasePruning is true when the most recent training pruned phrases. It looks at pruned_data, because a phrases table can remain from an earlier run that used another sample type.

Types

type PruneSource

type PruneSource int
const (
	NotPruned PruneSource = iota
	FAScore
	Silence
	Both
)

func (PruneSource) String

func (p PruneSource) String() string

Jump to

Keyboard shortcuts

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