ertk.preprocessing.phonemize.PhonemizeConfig
- class ertk.preprocessing.phonemize.PhonemizeConfig(language: str = 'en-us', backend: str = 'festival', ph_sep: str | None = ' ', syl_sep: str | None = None, word_sep: str | None = None, preserve_punctuation: bool = False, preserve_empty_lines: bool = True, strip: bool = False, language_switch: str = 'keep-flags')
Bases:
ERTKConfigPhonemizer configuration.
- __init__(language: str = 'en-us', backend: str = 'festival', ph_sep: str | None = ' ', syl_sep: str | None = None, word_sep: str | None = None, preserve_punctuation: bool = False, preserve_empty_lines: bool = True, strip: bool = False, language_switch: str = 'keep-flags') None
Methods
__init__([language, backend, ph_sep, ...])Inherited Methods
default()Create default config.
from_config(config)Create config object from any compatible config.
from_file(path)Create config from YAML file and optionlly override some values.
merge_with_args(args)Merge config with command-line arguments.
merge_with_config(config)Merge other config into this config.
to_dictconfig()Convert config to DictConfig.
to_file(path)Write config to YAML file.
to_string()Generate YAML string representation of config.
Attributes
Backend to use.
Language to use.
Language switch flagging.
Phoneme separator.
Preserve empty lines.
Preserve punctuation.
Strip whitespace.
Syllable separator.
Word separator.