drepr.models.parsers.v1.preprocessing_parser#
Classes
|
Preprocessing are defined as a list |
- class PreprocessingParser(path_parser: PathParser)[source]#
Bases:
objectPreprocessing are defined as a list
``` - type: <preprocessing_type>
# other properties
If <preprocessing_type> is pmap, its other properties are:
If <preprocessing_type> is pfilter, its properties are:
If <preprocessing_type> is rmap, its properties are:
- where output is either <resource_id> or an object of
resource_id: <resource_id> attr: <attr_id> [attr_path]: <path>
- Parameters:
path_parser (PathParser) –
- PREPRO_TYPES = {'pfilter', 'pmap', 'psplit', 'rmap'}#
- parse(default_resource_id: str, resources: List[Resource], attrs: ParsedAttrs, conf: list) List[Preprocessing][source]#
- Parameters:
default_resource_id (str) –
attrs (ParsedAttrs) –
conf (list) –
- Return type:
- parse_pfilter_psplit(resource_id: str, path: Path, prepro: dict, trace0: str, cls: Union[Type[PFilter], Type[PSplit]]) drepr.models.preprocessing.PFilter | drepr.models.preprocessing.PSplit[source]#