DictionaryModel#
- class montreal_forced_aligner.models.DictionaryModel(path, root_directory=None, phone_set_type='UNKNOWN')[source]#
Bases:
MfaModel
Class for representing MFA pronunciation dictionaries
- Parameters:
- classmethod generate_path(root, name, enforce_existence=True)[source]#
Generate a path for a given model from the root directory and the name of the model
- property is_multiple#
Flag for whether the dictionary contains multiple lexicons
- load_dictionary_paths()[source]#
Load the pronunciation dictionaries
- Returns:
Mapping of component pronunciation dictionaries
- Return type:
dict[str,
DictionaryModel
]
- property meta#
Metadata for the dictionary
- property name#
Name of the dictionary