git clone https://github.com/okamiRvS/BERT-BinaryLanguageClassifier.git
cd BERT-BinaryLanguageClassifier
mkdir models
- Download the model, unzip it and put the
finetuning-binary-language-classifier
folder intomodels
folder docker build -t fastapiapp:latest -f docker/Dockerfile .
docker run -p 5000:80 fastapiapp:latest
- Connect to
http://localhost:5000/docs
- or make a post at this link
http://localhost:5000/predict
which takes a JSON payload like{"text":"Questa è una frase in Italiano!"}
okamiRvS/BERT-BinaryLanguageClassifier
A BERT-based application to figure out if a sentence is in Italian or not.
Jupyter Notebook