Skip to content

Creates a stacked embedding instance using multiple Flair embeddings.

Usage

flair_embeddings.StackedEmbeddings(embeddings_list)

Arguments

embeddings_list

A list containing Flair embedding instances.

Value

An instance of the StackedEmbeddings from the flair.embeddings module.

Details

The function ensures that each embedding provided in the list is a recognized Flair embedding. If any of the embeddings in the list is not recognized, the function will throw an error.

Examples

if (FALSE) { # \dontrun{
glove_embedding <- flair_embeddings.WordEmbeddings("glove")
fasttext_embedding <- flair_embeddings.WordEmbeddings("fasttext")
stacked_embedding <- flair_embeddings.StackedEmbeddings(list(glove_embedding, fasttext_embedding))
} # }