G2PMixin#
- class montreal_forced_aligner.g2p.mixins.G2PMixin(num_pronunciations=0, g2p_threshold=1.5, include_bracketed=False, **kwargs)[source]#
Bases:
object
Abstract mixin class for G2P functionality
- Parameters:
num_pronunciations (int) – Number of pronunciations to generate, defaults to 0
g2p_threshold (float) – Weight threshold for generating pronunciations between 0 and 1, 1 returns the optimal path only, 0 returns all pronunciations, defaults to 0.99 (only used if num_pronunciations is 0)
include_bracketed (bool) – Flag for whether to generate pronunciations for fully bracketed words, defaults to False
- property words_to_g2p#
Words to produce pronunciations