The purpose of this repository is to show flair usage, which I wrote on my article.
This repository is NOT OFFICIAL. If you wanna know flair itself, I recommend to look official github documentation.
Python3.7+
- src/train_model.py # how to use flair model which is the same as official documentation.
- src/use_embeddings.py # how to use pretrained model with sklearn
- main.py # FastAPI
Since Pipfile.lock is available, you just do
$ pip3 install pipenv && pipenv sync --dev && pipenv run setup
flair trial
$ pipenv run flair-model
flair with sklearn
$ pipenv run emb
launch api
$ pipenv run api