LmTrainerMixin#
- class montreal_forced_aligner.language_modeling.trainer.LmTrainerMixin(prune_method='relative_entropy', order=3, method='kneser_ney', prune_thresh_small=3e-07, prune_thresh_medium=1e-07, **kwargs)[source]#
Bases:
DictionaryMixin
,TrainerMixin
,MfaWorker
Abstract mixin class for training language models
- Parameters:
See also
DictionaryMixin
For dictionary parsing parameters
TrainerMixin
For training parameters
MfaWorker
For worker parameters
- export_model(output_model_path)[source]#
Export language model to specified path
- Parameters:
output_model_path (
Path
) – Path to export model
- property far_path#
Internal temporary path to the FAR file
- property large_arpa_path#
Internal temporary path to the large arpa file
- property medium_arpa_path#
Internal temporary path to the medium arpa file
- property mod_path#
Internal temporary path to the model file
- property small_arpa_path#
Internal temporary path to the small arpa file