Token Classification
Transformers
Safetensors
mt5
named-entity-recognition
hausa
african-language
pii-detection
Generated from Trainer
Eval Results (legacy)
Instructions to use Beijuka/mt5-base-hausa-ner-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Beijuka/mt5-base-hausa-ner-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Beijuka/mt5-base-hausa-ner-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Beijuka/mt5-base-hausa-ner-v1") model = AutoModelForTokenClassification.from_pretrained("Beijuka/mt5-base-hausa-ner-v1") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files
README.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google/mt5-base
|
| 5 |
+
tags:
|
| 6 |
+
- named-entity-recognition
|
| 7 |
+
- hausa
|
| 8 |
+
- african-language
|
| 9 |
+
- pii-detection
|
| 10 |
+
- token-classification
|
| 11 |
+
- generated_from_trainer
|
| 12 |
+
datasets:
|
| 13 |
+
- Beijuka/Multilingual_PII_NER_dataset
|
| 14 |
+
metrics:
|
| 15 |
+
- precision
|
| 16 |
+
- recall
|
| 17 |
+
- f1
|
| 18 |
+
- accuracy
|
| 19 |
+
model-index:
|
| 20 |
+
- name: multilingual-google/mt5-base-hausa-ner-v1
|
| 21 |
+
results:
|
| 22 |
+
- task:
|
| 23 |
+
name: Token Classification
|
| 24 |
+
type: token-classification
|
| 25 |
+
dataset:
|
| 26 |
+
name: Beijuka/Multilingual_PII_NER_dataset
|
| 27 |
+
type: Beijuka/Multilingual_PII_NER_dataset
|
| 28 |
+
args: 'split: train+validation+test'
|
| 29 |
+
metrics:
|
| 30 |
+
- name: Precision
|
| 31 |
+
type: precision
|
| 32 |
+
value: 0.9484978540772532
|
| 33 |
+
- name: Recall
|
| 34 |
+
type: recall
|
| 35 |
+
value: 0.8977657413676371
|
| 36 |
+
- name: F1
|
| 37 |
+
type: f1
|
| 38 |
+
value: 0.9224347826086956
|
| 39 |
+
- name: Accuracy
|
| 40 |
+
type: accuracy
|
| 41 |
+
value: 0.9826865281588919
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 45 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 46 |
+
|
| 47 |
+
# multilingual-google/mt5-base-hausa-ner-v1
|
| 48 |
+
|
| 49 |
+
This model is a fine-tuned version of [google/mt5-base](https://huggingface.co/google/mt5-base) on the Beijuka/Multilingual_PII_NER_dataset dataset.
|
| 50 |
+
It achieves the following results on the evaluation set:
|
| 51 |
+
- Loss: 0.1053
|
| 52 |
+
- Precision: 0.9485
|
| 53 |
+
- Recall: 0.8978
|
| 54 |
+
- F1: 0.9224
|
| 55 |
+
- Accuracy: 0.9827
|
| 56 |
+
|
| 57 |
+
## Model description
|
| 58 |
+
|
| 59 |
+
More information needed
|
| 60 |
+
|
| 61 |
+
## Intended uses & limitations
|
| 62 |
+
|
| 63 |
+
More information needed
|
| 64 |
+
|
| 65 |
+
## Training and evaluation data
|
| 66 |
+
|
| 67 |
+
More information needed
|
| 68 |
+
|
| 69 |
+
## Training procedure
|
| 70 |
+
|
| 71 |
+
### Training hyperparameters
|
| 72 |
+
|
| 73 |
+
The following hyperparameters were used during training:
|
| 74 |
+
- learning_rate: 5e-05
|
| 75 |
+
- train_batch_size: 8
|
| 76 |
+
- eval_batch_size: 8
|
| 77 |
+
- seed: 42
|
| 78 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 79 |
+
- lr_scheduler_type: linear
|
| 80 |
+
- num_epochs: 20
|
| 81 |
+
|
| 82 |
+
### Training results
|
| 83 |
+
|
| 84 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
| 85 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
| 86 |
+
| No log | 1.0 | 301 | 0.2665 | 0.7902 | 0.7083 | 0.7470 | 0.9413 |
|
| 87 |
+
| 0.9875 | 2.0 | 602 | 0.2028 | 0.8688 | 0.8055 | 0.8360 | 0.9588 |
|
| 88 |
+
| 0.9875 | 3.0 | 903 | 0.1779 | 0.8880 | 0.8120 | 0.8483 | 0.9613 |
|
| 89 |
+
| 0.2051 | 4.0 | 1204 | 0.2090 | 0.8725 | 0.8506 | 0.8614 | 0.9638 |
|
| 90 |
+
| 0.157 | 5.0 | 1505 | 0.1443 | 0.9138 | 0.8397 | 0.8752 | 0.9677 |
|
| 91 |
+
| 0.157 | 6.0 | 1806 | 0.1434 | 0.9186 | 0.8571 | 0.8867 | 0.9706 |
|
| 92 |
+
| 0.1285 | 7.0 | 2107 | 0.1401 | 0.9102 | 0.8680 | 0.8886 | 0.9713 |
|
| 93 |
+
| 0.1285 | 8.0 | 2408 | 0.1483 | 0.9079 | 0.8693 | 0.8882 | 0.9706 |
|
| 94 |
+
| 0.1101 | 9.0 | 2709 | 0.1349 | 0.9274 | 0.8635 | 0.8943 | 0.9732 |
|
| 95 |
+
| 0.0985 | 10.0 | 3010 | 0.1217 | 0.9232 | 0.8667 | 0.8941 | 0.9734 |
|
| 96 |
+
| 0.0985 | 11.0 | 3311 | 0.1501 | 0.9190 | 0.8764 | 0.8972 | 0.9734 |
|
| 97 |
+
| 0.0879 | 12.0 | 3612 | 0.1474 | 0.9047 | 0.8802 | 0.8923 | 0.9727 |
|
| 98 |
+
| 0.0879 | 13.0 | 3913 | 0.1323 | 0.9245 | 0.8828 | 0.9032 | 0.9746 |
|
| 99 |
+
| 0.0786 | 14.0 | 4214 | 0.1496 | 0.9155 | 0.8796 | 0.8972 | 0.9743 |
|
| 100 |
+
| 0.0721 | 15.0 | 4515 | 0.1489 | 0.9238 | 0.8815 | 0.9021 | 0.9754 |
|
| 101 |
+
| 0.0721 | 16.0 | 4816 | 0.1399 | 0.9188 | 0.8892 | 0.9038 | 0.9759 |
|
| 102 |
+
| 0.0652 | 17.0 | 5117 | 0.1377 | 0.9149 | 0.8925 | 0.9035 | 0.9763 |
|
| 103 |
+
| 0.0652 | 18.0 | 5418 | 0.1476 | 0.9158 | 0.8970 | 0.9063 | 0.9772 |
|
| 104 |
+
| 0.0539 | 19.0 | 5719 | 0.1403 | 0.9189 | 0.8976 | 0.9081 | 0.9774 |
|
| 105 |
+
| 0.0534 | 20.0 | 6020 | 0.1404 | 0.9190 | 0.8989 | 0.9089 | 0.9776 |
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
### Framework versions
|
| 109 |
+
|
| 110 |
+
- Transformers 4.55.4
|
| 111 |
+
- Pytorch 2.8.0+cu126
|
| 112 |
+
- Datasets 4.0.0
|
| 113 |
+
- Tokenizers 0.21.4
|