SquirroItemLoader

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

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

Loads in a list of items (with the data structure of a Squirro Item) and converts them to libNLP Document

Methods Summary

process(data)

Convert Items (with data structure of a Squirro Item) to nlp Documents and yield

Methods Documentation

process(data)

Convert Items (with data structure of a Squirro Item) to nlp Documents and yield

Parameters

data (dict) – dictionary with items and parameters

Returns

Document generator

Return type

generator(Documents)