kaishi.core.filters.by_regex
¶
Class definition for filter by regex.
Module Contents¶
-
class
kaishi.core.filters.by_regex.
FilterByRegex
¶ Bases:
kaishi.core.pipeline_component.PipelineComponent
Filter data elements with a filename matching a specified regex.
-
__call__
(self, dataset)¶
-
configure
(self, pattern='/(?=a)b/')¶ Configure the regex pattern to match (default does not filter).
- Parameters
pattern (str) – pattern to filter by
-