pliers.transformers.get_transformer

pliers.transformers.get_transformer(name, base=None, *args, **kwargs)[source]

Scans list of currently available Transformer classes and returns an instantiation of the first one whose name perfectly matches (case-insensitive).

Parameters
  • name (str) – The name of the transformer to retrieve. Case-insensitive; e.g., ‘stftextractor’ or ‘CornerDetectionExtractor’.

  • base (str, list) – Optional name of transformer modules to search. Valid values are ‘converters’, ‘extractors’, and ‘filters’.

  • args – Optional positional or keyword arguments to pass onto the Transformer.

  • kwargs – Optional positional or keyword arguments to pass onto the Transformer.