MergeFilter

class squirro.lib.nlp.steps.filters.MergeFilter(config)

Bases: squirro.lib.nlp.steps.filters.Filter

Merges fields into a single field

Parameters
  • type (str) – merge

  • input_fields (list) – Fields to merge

  • output_field (str) – Field to merge into

  • delimiter (str, ' ') – String to merge on

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