JoinFilter#

class JoinFilter(config)#

Bases: Filter

The join Filter joins a list to a string

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

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

Parameters
  • type (str) – join

  • input_field (str) – Field to join

  • output_field (str) – Field to join into

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

Example

{
    "step": "filter",
    "type": "join",
    "input_field":"sentences",
    "output_field":"text",
    "delimiter":". "
}

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