File size: 2,460 Bytes
2d5d066 e32fd3b 2d5d066 e32fd3b 2d5d066 e32fd3b 90c0d69 e32fd3b 90c0d69 e32fd3b 90c0d69 e32fd3b 90c0d69 e32fd3b 90c0d69 e32fd3b 90c0d69 e32fd3b 90c0d69 3985a3d 90c0d69 e32fd3b 90c0d69 e32fd3b 90c0d69 e32fd3b 90c0d69 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | ---
language:
- en
- si
- ta
pipeline_tag: text-classification
tags:
- banking
- intent-classification
- labse
- multilingual
- code-mixed
---
# Swift-Support LaBSE Intent Classifier (v1.0)
This is a fine-tuned **Language-Agnostic BERT Sentence Embedding (LaBSE)** model designed for trilingual intent classification in the banking and financial support domain. It was developed as part of the **Swift** Support Ticket Classification project.
## Model Details
* **Base Architecture:** `sentence-transformers/LaBSE` (501k Vocabulary)
* **Task:** Text Classification (Intent Recognition)
* **Number of Classes:** 77 (Derived from the BANKING77 taxonomy)
* **Supported Languages:** English, Sinhala, Tamil, Singlish (Code-mixed), and Tanglish (Code-mixed).
## Evaluation & Benchmark Results
During the architectural ablation phase, this model was strictly evaluated on a held-out test set against classical ML algorithms, Indic Specialists (MuRIL & IndicBERT), and XLM-RoBERTa.
The metric used is **Macro-F1** across all 77 intent classes.
| Language Track | Best Classical ML | MuRIL | IndicBERT | XLM-RoBERTa | **LaBSE (This Model)** |
|---|---:|---:|---:|---:|---:|
| **English** | 90.98% | — | — | 93.88% | **94.13%** |
| **Sinhala** | 83.08% | — | — | 92.42% | **92.95%** |
| **Singlish** (Romanized) | 86.49% | — | — | 90.03% | **90.65%** |
| **Tamil** | 86.35% | 66.01% | 89.81% | 91.74% | **93.27%** |
| **Tanglish** (Romanized) | 61.05% | 57.62% | 61.25% | **72.04%** | 70.57% |
| **ALL (Pooled)** | 83.18% | 62.10% | 76.24% | 88.29% | **88.54%** |
**Key Findings:**
1. **LaBSE is the Intent Champion:** Achieving **88.54% Macro-F1** on the pooled track, it outperformed the classical baseline by +5.36pp.
2. **Specialists failed on Code-Mixed Data:** Indic specialists like MuRIL and IndicBERT failed outright on the pooled and code-mixed tracks because their smaller vocabularies couldn't handle heavy romanization or English slang, proving that massive multilingual coverage (LaBSE's 501k vocab) is required for real-world South Asian support tickets.
## How to use in Python
You can easily use this model via the `transformers` pipeline:
```python
from transformers import pipeline
classifier = pipeline("text-classification", model="Swift-Support/labse-intent-1.0")
result = classifier("I lost my credit card yesterday, please help me cancel it")
print(result)
# Output: [{'label': 'Card payment declined', 'score': 0.98}]
|