Job#
- class montreal_forced_aligner.db.Job(**kwargs)[source]#
Bases:
BaseDatabase class for storing information about multiprocessing jobs
- Parameters:
id (int) – Primary key
corpus_id (int) – Foreign key to
Corpuscorpus (
Corpus) – Corpusutterances (list[
Utterance]) – Utterances associated with the jobsymbols (list[
M2M2Job]) – Symbols associated with the job in training phonetisaurus modelswords (list[
Word2Job]) – Words associated with the job in training phonetisaurus models
- construct_dictionary_dependent_paths(directory, identifier, extension)[source]#
Helper function for constructing paths that depend only on the dictionaries of the job, and not the job name itself. These paths should be merged with all other jobs to get a full set of dictionary paths. :param directory: Directory to use as the root :type directory:
Path:param identifier: Identifier for the path name, like ali or acc :type identifier: str :param extension: Extension of the path, like .scp or .ark :type extension: str
- construct_feature_proc_string(working_directory, dictionary_id, uses_splices, splice_left_context, splice_right_context, uses_speaker_adaptation=False)[source]#
Constructs a feature processing string to supply to Kaldi binaries, taking into account corpus features and the current working directory of the aligner (whether fMLLR or LDA transforms should be used, etc).