JSONLoader
JSONLoader#
- class squirro.lib.nlp.steps.loaders.JSONLoader(config)#
Bases:
squirro.lib.nlp.steps.loaders.base.Loader
The JSON
Loader
loads JSON files and transforms the data intoDocument
items.- Parameters
Example
{ "step": "loader", "type": "json", "fields": [ "text", "label" ] }
Methods Summary
process
(directory)Process a directory of json files and yield documents.
Methods Documentation