Flair
Using Flair at BOINC AI
Flair is a very simple framework for state-of-the-art NLP. Developed by Humboldt University of Berlin and friends.
Exploring Flair in the Hub
You can find flair
models by filtering at the left of the models page.
All models on the Hub come with these useful features:
An automatically generated model card with a brief description.
An interactive widget you can use to play with the model directly in the browser.
An Inference API that allows you to make inference requests.
Installation
To get started, you can follow the Flair installation guide. You can also use the following one-line install through pip:
Copied
Using existing models
All flair
models can easily be loaded from the Hub:
Copied
Once loaded, you can use predict()
to perform inference:
Copied
It outputs the following:
Copied
If you want to load a specific Flair model, you can click Use in Flair
in the model card and you will be given a working snippet!
Additional resources
Flair repository
Flair docs
Official Flair models on the Hub (mainly trained by @alanakbik and @stefan-it)
Last updated