Skip to content

This function utilizes the reticulate package to import the SequenceTaggers from Flair's models in Python, enabling interaction with Flair's sequence tagging models in an R environment.

Usage

flair_models.Sequencetagger()

Value

A Python module (SequenceTagger) from Flair, which can be utilized to load and use sequence tagging models.

Details

The function does not take any parameters and directly returns the SequenceTagger when called, which can be used further for sequence tagging tasks using pre-trained models from Flair.

References

Python equivalent:


from flair.models import SequenceTagger

See also

https://github.com/flairNLP/flair for more information on Flair's capabilities in NLP and sequence tagging.

Examples

if (FALSE) { # \dontrun{
sequence_tagger <- flair_models.sequencetagger()
} # }