Skip to content

This function loads a pre-trained sentiment or language tagger from the Flair library.

Usage

load_tagger_sentiments(language = NULL)

Arguments

language

A character string specifying the language model to load. Supported models include:

  • "sentiment" - Sentiment analysis model

  • "sentiment-fast" - Faster sentiment analysis model

  • "de-offensive-language" - German offensive language detection model

If not provided, the function will default to the "sentiment" model.

Value

An object of the loaded Flair model.

Examples

if (FALSE) { # \dontrun{
  tagger <- load_tagger_sentiments("sentiment")
} # }