Table Of Contents
Table Of Contents

gluonts.dataset.jsonl module

class gluonts.dataset.jsonl.JsonLinesFile(path)[source]

Bases: object

An iterable type that draws from a JSON Lines file.

Parameters:path – Path of the file to load data from. This should be a valid JSON Lines file.
class gluonts.dataset.jsonl.Line(content, span)[source]

Bases: tuple

content

Alias for field number 0

span

Alias for field number 1

class gluonts.dataset.jsonl.Span(path, line)[source]

Bases: tuple

line

Alias for field number 1

path

Alias for field number 0

gluonts.dataset.jsonl.dump(objects, file_obj)[source]
gluonts.dataset.jsonl.load(file_obj)[source]