flair.data#
Represents a bounding box with left, top, right, and bottom coordinates. |
|
Concatenates multiple datasets, adding a multitask_id label to each sentence. |
|
The main container for holding train, dev, and test datasets for a task. |
|
Type variable. |
|
Type variable. |
|
Type variable. |
|
Represents a pair of DataPoints, often used for sentence-pair tasks. |
|
Abstract base class for all data points in Flair (e.g., Token, Sentence, Image). |
|
Represents a triplet of DataPoints. |
|
This class holds a dictionary that maps strings to unique integer IDs. |
|
Represents a potential candidate entity from a knowledge base for entity linking. |
|
Abstract base class for Flair datasets, adding an in-memory check. |
|
Represents an image as a data point, holding image data or a URL. |
|
Represents a label assigned to a DataPoint (e.g., Token, Span, Sentence). |
|
A Corpus composed of multiple individual Corpus objects, often for multi-task learning. |
|
Represents a directed relationship between two Spans in the same Sentence. |
|
A central data structure representing a sentence or text passage as Tokens. |
|
Represents a contiguous sequence of Tokens within a Sentence. |
|
Type variable. |
|
Type alias for a DataPair consisting of two Sentences. |
|
Type alias for a DataTriple consisting of three Sentences. |
|
Represents a single token (word, punctuation) within a Sentence. |
|
Abstract base for data points within a Sentence (Token, Span, Relation). |
|
Iterates over a Dataset yielding single data points. |
|
Calculates the length (number of data points) in a Dataset. |
|
Decodes a sequence of BIOES/BIO tags into labeled spans with scores. |
|
Shuffles and splits a dataset into two Subsets. |