BlacklistFilter

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

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

Removes documents based on a blacklist

Parameters
  • type (str) – blacklist

  • blacklists (dict) – Dictionary of fields to apply the blacklisting, each with a list of blacklisted values

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