SmartfilterClassifier

class squirro.lib.nlp.steps.classifiers.SmartfilterClassifier(config)

Bases: squirro.lib.nlp.steps.classifiers.Classifier

Classifier for creating predictions from a smartfilter.

Parameters
  • type (str) – smartfilter

  • words_threshold (int, 1) – Minimum number of highlighted words to be included as an extract.

  • smartfilter_label (str) – Label added to document if it contains an extract.

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