SquirroGroundtruthLoader

class squirro.lib.nlp.steps.loaders.SquirroGroundtruthLoader(config)

Bases: squirro.lib.nlp.steps.loaders.Loader

Loads items from a Squirro groundtruth and converts them to libNLP Document.

Parameters
  • type (str) – squirro_groundtruth

  • project_id (str) – id of Squirro project

  • groundtruth_id (str) – id of the Squirro Ground Truth

  • temporal_version (str, None) – Date which defines the temporal version of the GT

  • cluster (str) – Squirro cluster

  • token (str) – Squirro token

  • client_id (str, None) – Squirro client id

  • client_secret (str, None) – Squirro client secret

Methods Summary

process(dataset)

Load Ground Truth and yield documents.

Methods Documentation

process(dataset)

Load Ground Truth and yield documents.

Arguments

Yields

Document – A document from a query