Install the requirements on a python virtual environment:
virtualenv venv
source venv/bin/activate
pip install -r requirements.txtGiven a large amount of in-domain text in train.txt with a held-out sample in test.txt fine-tune RoBERTa-base (this will take many hours, possibly days and might not be feasible without a GPU):
python fine_tune.pyOnce the model has been fine-tuned, it can be exported to ONNX format:
python onnx_export.py