Views
No views yet
xlm-roberta-base| Label | Description | Example Words |
|---|---|---|
URD | Roman Urdu tokens | aaj, kal, kaam, hai |
ENG | English tokens | project, submission, file |
MIX | Hybrid code-mixed tokens | Hybrid words with local inflections |
seqeval:| Class / Label | Precision | Recall | F1-Score |
|---|---|---|---|
ENG | 0.99 | 0.99 | 0.99 |
URD | 0.91 | 0.89 | 0.90 |
MIX | 0.00 | 0.00 | 0.00 |
| Overall (Micro Avg) | 0.98 | 0.97 | 0.97 |
pipeline:1from transformers import pipeline
2
3nlp = pipeline(
4 "token-classification",
5 model="HaniaEmaan/code-switching-codesaviours-si26-hania",
6 aggregation_strategy="simple"
7)
8
9sentence = "aaj mera project submission complete ho gaya hai"
10predictions = nlp(sentence)
11
12for pred in predictions:
13 print(f"Token: {pred['word']} | Label: {pred['entity_group']} | Score: {pred['score']:.4f}")