LanguageModel#
- class montreal_forced_aligner.models.LanguageModel(source, root_directory=None)[source]#
Bases:
Archive
Class for MFA language models
- Parameters:
- add_arpa_file(arpa_path)[source]#
Adds an ARPA file to the model
- Parameters:
arpa_path (
Path
) – Path to ARPA file
- property carpa_path#
Uses the largest language model for rescoring
- property decode_arpa_path#
Uses the smallest language model for decoding
- property large_arpa_path#
Large arpa path
- property medium_arpa_path#
Medium arpa path
- property small_arpa_path#
Small arpa path