Documentation
¶
Index ¶
- Constants
- func Process(database db.DBAdapter, req request.Request) ([]db.Output, *log.Status)
- func ReadAudioErrorData(ctx context.Context, datasetName string, s3AudioPath string) ([]audioError, *log.Status)
- func SelectPhraseData(database db.DBAdapter) (phraseData, *log.Status)
- func SelectPrunedData(database db.DBAdapter) (map[int64]prunedVerse, *log.Status)
- func SelectVerseFARank(database db.DBAdapter) (map[int64]faRank, *log.Status)
- func SelectVerses(database db.DBAdapter) ([]generic.Verse2, *log.Status)
- func UsesPhrasePruning(database db.DBAdapter) (bool, *log.Status)
- type PruneSource
Constants ¶
const CompareRptCutoff = 2
Variables ¶
This section is empty.
Functions ¶
func ReadAudioErrorData ¶
func SelectPrunedData ¶
func SelectVerseFARank ¶
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 ¶
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.
Types ¶
type PruneSource ¶
type PruneSource int
const ( NotPruned PruneSource = iota FAScore Silence Both )
func (PruneSource) String ¶
func (p PruneSource) String() string