flair.data#

BoundingBox

ConcatFlairDataset

Dataset as a concatenation of multiple datasets.

Corpus

The main object in Flair for holding a dataset used for training and testing.

DT

Type variable.

DT2

Type variable.

DT3

Type variable.

DataPair

DataPoint

This is the parent class of all data points in Flair.

DataTriple

Dictionary

This class holds a dictionary that maps strings to IDs, used to generate one-hot encodings of strings.

EntityCandidate

A Concept as part of a knowledgebase or ontology.

FlairDataset

Image

Label

This class represents a label.

MultiCorpus

Relation

Sentence

A Sentence is a central object in Flair that represents either a single sentence or a whole text.

Span

This class represents one textual span consisting of Tokens.

T_co

Type variable.

TextPair

alias of DataPair[Sentence, Sentence]

TextTriple

alias of DataTriple[Sentence, Sentence, Sentence]

Token

This class represents one word in a tokenized sentence.

_PartOfSentence

_iter_dataset

_len_dataset

get_spans_from_bio

randomly_split_into_two_datasets

Shuffles a dataset and splits into two subsets.