Analyzer

class squirro.lib.nlp.steps.analyzers.Analyzer(config)

Bases: squirro.lib.nlp.steps.base.Step

The base Analyzer is a Step that judges the accuracy of a given labeling task.

Parameters
  • type (str) – Type of Analyzer

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

  • tag_field (str) – Field with predicted label

  • threshold (float, 0.75) – Confidence threshold used for classification

Methods Summary

process(docs)

Process a set of documents

Methods Documentation

process(docs)

Process a set of documents

Parameters

docs (generator(Document)) – Generator of documents

Returns

Analysis

Return type

dict