Routes banking customer messages to one of 77 intents (Banking77). I compared three approaches at 10, 30 and all labelled examples per intent to find which one to ship.
Frozen MiniLM embeddings + logistic regression won: 92.9% on the full test set, and 85.4% with only 10 examples per intent (12 points above TF-IDF)
TF-IDF + linear SVM: 91.2%, the fastest at under 1 ms per query
Fine-tuned DistilBERT (PyTorch training loop): 90.8%; int8 quantization made it 3.5x faster for 0.6 points
FastAPI + Docker service, and an in-browser demo with Transformers.js; training reruns in GitHub Actions

0 likes · 0 views · Nov 24, 2026
77-intent text classifier: TF-IDF vs embeddings vs fine-tuned DistilBERT; best 92.9% accuracy, runs in browser.