SplitFilter

SplitFilter#

class SplitFilter(config)#

Bases: Filter

The splits filter splits the string based field into a list

Input - the input field needs to be of type str.

Output - the output field is filled with data of type list [ str ].

Parameters:
  • type (str) – split

  • input_field (str) – Field to split

  • output_field (str) – Field to split into

  • delimiter (str, ',') – Delimiter to split on

Example

{
    "step": "filter",
    "type": "split",
    "input_field":"list",
    "output_field":"elements",
}

Methods Summary

process_doc(doc)

Process a document

Methods Documentation

process_doc(doc)#

Process a document

Parameters:

doc (Document) – Document

Returns:

Processed document

Return type:

Document