montreal_forced_aligner/abc.py
def extract_relevant_parameters(cls, config: MetaDict) -> Tuple[MetaDict, List[str]]:
        """
        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
        """
        skipped = []
        new_config = {}
        for k, v in config.items():
            if k in cls.get_configuration_parameters():
                new_config[k] = v
            else:
                skipped.append(k)
        return new_config, skipped

        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
        
Filter a configuration dictionary to just the relevant parameters for the current worker
Parameters

dict[str, Any]
Configuration dictionary

Returns

dict[str, Any]
Filtered configuration dictionary
list[str]
Skipped keys
Filter a configuration dictionary to just the relevant parameters for the current worker Parameters dict [ str Any ] Configuration dictionary Returns dict [ str Any ] Filtered configuration dictionary list [ str ] Skipped keys
def extract_relevant_parameters(cls, config: MetaDict) -> Tuple[MetaDict, List[str]]:
        skipped = []
        new_config = {}
        for k, v in config.items():
            if k in cls.get_configuration_parameters():
                new_config[k] = v
            else:
                skipped.append(k)
        return new_config, skipped
def extract_relevant_parameters ( cls , config : MetaDict ) -> Tuple [ MetaDict , List [ str ] ] : skipped = [ ] new_config = { } for k , v in config . items ( ) : if k in cls . get_configuration_parameters ( ) : new_config [ k ] = v else : skipped . append ( k ) return new_config , skipped
Filter a configuration dictionary to just the relevant parameters for the current worker
Parameters
Filter a configuration dictionary to just the relevant parameters for the current worker Parameters
"""
        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
        """
cls
config
MetaDict