Classifier

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

Bases: squirro.lib.nlp.steps.batched_step.BatchedStep

Classifier steps attempt to guess a specified label_field given an input_field or input_fields. It writes its guess to a specified output_field along with a potential explanation in the explanation_field.

Parameters
  • step (str) – classifier

  • type (str) – Type of Classifier

  • explanation_field (str, None) – Field with explanation of prediction

  • input_field (str, None) – Field to use as input

  • input_fields (list, None) – List of fields to form a feature vector

  • label_field (str) – Field with ground-truth label (used for training)

  • output_field (str) – Field where prediction is written