CopyFilter

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

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

Copies input fields into output fields

Parameters
  • type (str) – copy

  • input_fields (list) – Fields to copy

  • output_fields (list) – Fields to copy into

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