DictionaryTrainer#

class montreal_forced_aligner.alignment.pretrained.DictionaryTrainer(calculate_silence_probs=False, min_count=1, **kwargs)[source]#

Bases: PretrainedAligner

Aligner for calculating pronunciation probabilities of dictionary entries

Parameters:
  • calculate_silence_probs (bool) – Flag for whether to calculate silence probabilities, default is False

  • min_count (int) – Specifies the minimum count of words to include in derived probabilities, affects probabilities of infrequent words more, default is 1

See also

PretrainedAligner

For dictionary and corpus parsing parameters and alignment parameters

export_lexicons(output_directory)[source]#

Generate pronunciation probabilities for the dictionary

Parameters:

output_directory (str) – Directory in which to save new dictionaries

See also

GeneratePronunciationsFunction

Multiprocessing helper function for each job

CorpusAligner.generate_pronunciations_arguments

Job method for generating arguments for helper function