Skip to content

flair

import_flair()
Wrapper for the Flair Python Library

flair_data

Accessing flair.data module from flair.
flair_data()
Import flair.data Module

flair_datasets

Accessing flair.datasets module from flair.
flair_datasets()
Access the flair_datasets Module from Flair
flair_data.Sentence()
Create a Flair Sentence

flair_embeddings

Accessing flair.embeddings module from flair.
flair_embeddings()
Initialization of Flair Embeddings Modules
flair_embeddings.FlairEmbeddings()
Initializing a Class for Flair's Forward and Backward Embeddings
flair_embeddings.TransformerDocumentEmbeddings()
Initializing a Class for TransformerDocumentEmbeddings
flair_embeddings.TransformerWordEmbeddings()
Initializing a Class for TransformerWordEmbeddings
flair_embeddings.WordEmbeddings()
Initializing a Class for Flair WordEmbeddings Class
flair_embeddings.StackedEmbeddings()
Initializing a Class for StackedEmbeddings

flair_nn

Accessing flair.nn module from flair.
flair_nn()
Import Flair's Neural Network Module
flair_nn.Classifier()
Initializing a Class for Flair Classifier

flair_trainers

Accessing flair.trainers module from flair.
flair_trainers()
Import flair.trainers Module in R

flair_splitter

Accessing flair.splitter module from flair.

flair_splitter()
Import flair.splitter Module in R
flair_splitter.SegtokSentenceSplitter()
Segtok Sentence Splitter

flair_models

Accessing flair.models module from flair.
flair_models()
Import the flair.models Python module
flair_models.TextClassifier()
Retrieve TextClassifier from flair.models
flair_models.Sequencetagger()
Access Flair's SequenceTagger

Expanded Feats

Extended functionality for working with three major functions to extract features in data.table.
load_tagger_ner()
Load the Named Entity Recognition (NER) Tagger
load_tagger_pos()
Load Flair POS Tagger
load_tagger_sentiments()
Load a Sentiment or Language Tagger Model from Flair
get_entities()
Tagging Named Entities with Flair Models
get_entities_batch()
Extract Named Entities from a Batch of Texts
get_pos()
Tagging Part-of-Speech Tagging with Flair Models
get_pos_batch()
Batch Process of Part-of-Speech Tagging
get_sentiments()
Tagging Sentiment with Flair Standard Models
get_sentiments_batch()
Batch Process of Tagging Sentiment with Flair Models

Toolbox

flairR utilities
flair_device()
Set Flair Device
highlight_text()
Highlight Entities with Specified Colors and Tag
map_entities()
Create Mapping for NER Highlighting
embeddings_to_matrix()
Convert Embeddings to Matrix
clear_flair_cache()
Clear Flair Cache
show_flair_cache()
Show Flair Cache Preloaed flair's Directory
uninstall_python_package()
Uninstall a Python Package
install_python_package()
Install a Specific Python Package and Return Its Version

Training Dataset

Training dataset for tutorial
cc_muller
Training Data from : The Temporal Focus of Campaign Communication (2020 JOP)
gs_score
Training Data from : When Do Politicians Grandstand? Measuring Message Politics in Committee Hearings (2021 JOP)
hatespeech_zh_tw
Training Data from : Political Hate Speech Detection and Lexicon Building: A Study in Taiwan (IEEE Explore 2022)
de_immigration
German Bundestag Immigration Debate Data
uk_immigration
UK House of Commons Immigration Debate Data
statements
Sampled Grandstanding Text