Here is a quick example tutorial on how to run the ML backend with a simple text classifier:
-
Clone repo
git clone https://github.com/heartexlabs/label-studio
-
Setup environment
cd label-studio pip install -e . cd label_studio/ml/examples pip install -r requirements.txt
-
Create new ML backend
label-studio-ml init my_ml_backend --script label_studio/ml/examples/simple_text_classifier.py
-
Start ML backend server
label-studio-ml start my_ml_backend
-
Run Label Studio connecting it to the running ML backend:
label-studio start text_classification_project --init --template text_sentiment --ml-backends http://localhost:9090
Check examples in label-studio/ml/examples
directory.