flair.datasets.base.FlairDatapointDataset#

class flair.datasets.base.FlairDatapointDataset(datapoints)View on GitHub#

Bases: FlairDataset, Generic[DT]

A simple Dataset object to wrap a List of Datapoints, for example Sentences.

__init__(datapoints)View on GitHub#

Instantiate FlairDatapointDataset.

Parameters:

datapoints (Union[TypeVar(DT, bound= DataPoint), list[TypeVar(DT, bound= DataPoint)]]) – DT or List of DT that make up FlairDatapointDataset

Methods

__init__(datapoints)

Instantiate FlairDatapointDataset.

is_in_memory()

is_in_memory()View on GitHub#
Return type:

bool