<!-- Source: https://docs.squirro.com/en/latest/api/squirro.lib.nlp.steps.analyzers.Analyzer.html -->
# Analyzer

**`class Analyzer(config)`**

Bases: [`Step`](../technical/libnlp/steps/standard.md#squirro.lib.nlp.steps.base.Step)

The base [`Analyzer`](#squirro.lib.nlp.steps.analyzers.Analyzer) is a [`Step`](../technical/libnlp/steps/standard.md#squirro.lib.nlp.steps.base.Step) that judges the accuracy of a given labeling task.

Parameters

- `type` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)) – Type of [`Analyzer`](#squirro.lib.nlp.steps.analyzers.Analyzer)
- `label_field` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)) – Field with ground-truth label
- `tag_field` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)) – Field with predicted label
- `threshold` ([`float`](https://docs.python.org/3.11/library/functions.html#float)`, ``0.75`) – Confidence threshold used for classification

Methods SummaryMethods Documentation

**`process(docs)`**

Process a set of documents

Parameters

`docs` (`generator``(`[`Document`](../technical/libnlp/base.md#squirro.lib.nlp.document.Document)`)`) – Generator of documents

Returns

Analysis

Return type

[dict](https://docs.python.org/3.11/library/stdtypes.html#dict)
