DictionaryValidator#

class montreal_forced_aligner.validation.DictionaryValidator(g2p_model_path=None, g2p_threshold=1.5, **kwargs)[source]#

Bases: PyniniTrainer

Mixin class for performing validation on a corpus

Parameters:
  • g2p_model_path (Path, optional) – Path to pretrained G2P model

  • g2p_threshold (float, optional) – Threshold for pruning pronunciations, defaults to 1.5, which returns the optimal pronunciations and those with scores less than 1.5 times the optimal pronunciation’s score. Increase to allow for more suboptimal pronunciations

See also

CorpusAligner

For corpus, dictionary, and alignment parameters

Variables:

printer (TerminalPrinter) – Printer for output messages

setup()[source]#

Set up the dictionary validator

validate(output_path=None)[source]#

Validate the dictionary

Parameters:

output_path (Path, optional) – Path to save scored CSV