flair.data.ConcatFlairDataset#

class flair.data.ConcatFlairDataset(datasets, ids)View on GitHub#

Bases: Dataset

Dataset as a concatenation of multiple datasets.

This class is useful to assemble different existing datasets.

Parameters:

datasets (sequence) – List of datasets to be concatenated

__init__(datasets, ids)View on GitHub#

Methods

__init__(datasets, ids)

cumsum(sequence)

Attributes

cummulative_sizes

datasets

cumulative_sizes

static cumsum(sequence)View on GitHub#
datasets: list[Dataset]#
cumulative_sizes: list[int]#
property cummulative_sizes: list[int]#