Initializing a Class for StackedEmbeddings
Source:R/flair_embeddings.R
flair_embeddings.StackedEmbeddings.Rd
Creates a stacked embedding instance using multiple Flair embeddings.
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))
} # }