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

**`class SquirroGroundtruthLoader(config)`**

Bases: [`Loader`](squirro.lib.nlp.steps.loaders.Loader.md#squirro.lib.nlp.steps.loaders.Loader)

Loads items from a Squirro Ground Truth into [`Document`](../technical/libnlp/base.md#squirro.lib.nlp.document.Document) items.

**Note** - The fields client_id, client_secret, cluster, token and project_id do not need to be set if it is used inside the Squirro machinelearning service

Parameters

- `type` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)) – squirro_groundtruth
- `groundtruth_id` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)) – id of the Squirro Ground Truth
- `client_id` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)`, ``None`) – Squirro client id
- `client_secret` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)`, ``None`) – Squirro client secret
- `cluster` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)) – Squirro cluster
- `token` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)) – Squirro token
- `project_id` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)) – id of Squirro project
- `temporal_version` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)`, ``None`) – date which defines the temporal version of the Ground Truth

**Example**

```json
{
    "step": "loader",
    "type": "squirro_groundtruth",
    "groundtruth_id": "GROUNDTRUTH_ID",
    "cluster": "CLUSTER",
    "token": "TOKEN",
    "project_id": "PROJECT_ID",
    "temporal_version": "2021-10-21T07:28:00.000000"
}
```

Methods SummaryMethods Documentation

**`process(dataset)`**

Load Ground Truth and yield documents.

Arguments

Yields

_Document_ – A document from a query
