kaishi.core.filters.by_label
¶
Class definition for filter by label.
Module Contents¶
-
class
kaishi.core.filters.by_label.
FilterByLabel
¶ Bases:
kaishi.core.pipeline_component.PipelineComponent
Filter each element of a dataset by a specified label.
-
__call__
(self, dataset)¶
-
configure
(self, label_to_filter=None)¶ Specify the label to filter.
- Parameters
label_to_filter (str) – data elements with this label will be filtered
-