PyniniWordListGenerator#

class montreal_forced_aligner.g2p.generator.PyniniWordListGenerator(word_list_path, **kwargs)[source]#

Bases: PyniniValidator, DatabaseMixin

Top-level worker for generating pronunciations from a word list and a Pynini G2P model

Parameters:

word_list_path (Path) – Path to word list file

See also

PyniniGenerator

For Pynini G2P generation parameters

TopLevelMfaWorker

For top-level parameters

Variables:

word_list (list[str]) – Word list to generate pronunciations

property data_directory#

Data directory

property data_source_identifier#

Name of the word list file

setup()[source]#

Set up the G2P generator