flair.embeddings.base#

DocumentEmbeddings

Abstract base class for all document-level embeddings.

EMBEDDING_CLASSES

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2).

Embeddings

Abstract base class for all embeddings.

ScalarMix

Mixes several tensors by a learned weighting.

TokenEmbeddings

Abstract base class for all token-level embeddings.

load_embeddings

register_embeddings