MfaWorker#

class montreal_forced_aligner.abc.MfaWorker(**kwargs)[source]#

Bases: object

Abstract class for MFA workers

Variables:

dirty (bool) – Flag for whether an error was encountered in processing

property configuration#

Configuration parameters

abstract property data_directory#

Data directory

classmethod extract_relevant_parameters(config)[source]#

Filter a configuration dictionary to just the relevant parameters for the current worker

Parameters:

config (dict[str, Any]) – Configuration dictionary

Returns:

  • dict[str, Any] – Filtered configuration dictionary

  • list[str] – Skipped keys

classmethod get_configuration_parameters()[source]#

Get the types of parameters available to be configured

Returns:

Dictionary of parameter names and their types

Return type:

dict[str, Type]

abstract property working_directory#

Current working directory

property working_log_directory#

Current working log directory