flair.nn#

Classifier

Abstract base class for all Flair models that do classification.

DeepNCMDecoder

Deep Nearest Class Mean (DeepNCM) Classifier for text classification tasks.

DefaultClassifier

Default base class for all Flair models that do classification.

LabelVerbalizerDecoder

A class for decoding labels using the idea of siamese networks / bi-encoders.

LockedDropout

Implementation of locked (or variational) dropout.

Model

Abstract base class for all downstream task models in Flair, such as SequenceTagger and TextClassifier.

PrototypicalDecoder

WordDropout

Implementation of word dropout.