Upload mBERT Sepedi sentiment classifier
Browse files- README.md +82 -0
- config.json +35 -0
- model.safetensors +3 -0
- tokenizer.json +0 -0
- tokenizer_config.json +15 -0
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- nso
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- text-classification
|
| 7 |
+
- sentiment-analysis
|
| 8 |
+
- sepedi
|
| 9 |
+
- northern-sotho
|
| 10 |
+
- african-languages
|
| 11 |
+
- community-sovereignty
|
| 12 |
+
pipeline_tag: text-classification
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Sepedi Sentiment Classifier v1.0
|
| 16 |
+
|
| 17 |
+
**Developer:** TSEBO SOVEREIGN TECH | Licensed to Sediba AI NPC
|
| 18 |
+
**Language:** Sepedi / Northern Sotho (nso)
|
| 19 |
+
**Task:** Sentiment Classification
|
| 20 |
+
**License:** Apache-2.0 + Community Sovereignty License
|
| 21 |
+
|
| 22 |
+
## Model Description
|
| 23 |
+
|
| 24 |
+
BERT-based sentiment classifier for Sepedi. Trained on 1,495,728 professional linguistic texts from SADiLaR (South African Centre for Digital Language Resources).
|
| 25 |
+
|
| 26 |
+
This is the **first public sentiment classifier for Sepedi**, developed as part of the **Sediba AI** community intelligence platform serving Limpopo.
|
| 27 |
+
|
| 28 |
+
## Usage
|
| 29 |
+
|
| 30 |
+
```python
|
| 31 |
+
from transformers import pipeline
|
| 32 |
+
|
| 33 |
+
classifier = pipeline('text-classification',
|
| 34 |
+
model='Sediba-AI/sepedi-sentiment-classifier')
|
| 35 |
+
|
| 36 |
+
result = classifier('Ubuntu o motle')
|
| 37 |
+
print(result)
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
## Training Data
|
| 41 |
+
|
| 42 |
+
| Source | Texts | Share |
|
| 43 |
+
|--------|-------|-------|
|
| 44 |
+
| SADILAR NCHLT Annotated Corpus | 1,423,467 | 95% |
|
| 45 |
+
| Lwazi Dictionaries | 72,261 | 5% |
|
| 46 |
+
| **Total** | **1,495,728** | **100%** |
|
| 47 |
+
|
| 48 |
+
## Model Details
|
| 49 |
+
|
| 50 |
+
- **Base Model:** BERT (bert-base-multilingual-cased)
|
| 51 |
+
- **Framework:** Hugging Face Transformers
|
| 52 |
+
- **Training Samples:** 1,495,728
|
| 53 |
+
- **Labels:** POSITIVE, NEGATIVE, NEUTRAL
|
| 54 |
+
- **Accuracy:** 100% on internal test set (n=40)
|
| 55 |
+
|
| 56 |
+
## Governance
|
| 57 |
+
|
| 58 |
+
**Data Sovereignty:** Yarena Framework (Sediba AI governance layer)
|
| 59 |
+
**Community Benefit:** Kutollo Exchange (75% Community / 15% NPC / 10% Developer)
|
| 60 |
+
**Consent Model:** FPIC (Free, Prior and Informed Consent)
|
| 61 |
+
|
| 62 |
+
## Citation
|
| 63 |
+
|
| 64 |
+
```bibtex
|
| 65 |
+
@misc{sediba_ai_sepedi_sentiment_2026,
|
| 66 |
+
title={Sepedi Sentiment Classifier: Community-Sovereign NLP},
|
| 67 |
+
author={Lemekoana, Lehlohonolo Owen and TSEBO SOVEREIGN TECH},
|
| 68 |
+
year={2026},
|
| 69 |
+
publisher={Hugging Face},
|
| 70 |
+
url={https://huggingface.co/Sediba-AI/sepedi-sentiment-classifier}
|
| 71 |
+
}
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
## License
|
| 75 |
+
|
| 76 |
+
Dual-licensed under Apache-2.0 (research use) and Community Sovereignty License (commercial use).
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
|
| 80 |
+
**Developed by:** TSEBO SOVEREIGN TECH (Pty) Ltd
|
| 81 |
+
**For:** Sediba AI NPC | Mankweng, Limpopo, South Africa
|
| 82 |
+
**GitHub:** [sediba-ai](https://github.com/sediba-ai)
|
config.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForSequenceClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": null,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"directionality": "bidi",
|
| 10 |
+
"dtype": "float32",
|
| 11 |
+
"eos_token_id": null,
|
| 12 |
+
"hidden_act": "gelu",
|
| 13 |
+
"hidden_dropout_prob": 0.1,
|
| 14 |
+
"hidden_size": 768,
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": 3072,
|
| 17 |
+
"is_decoder": false,
|
| 18 |
+
"layer_norm_eps": 1e-12,
|
| 19 |
+
"max_position_embeddings": 512,
|
| 20 |
+
"model_type": "bert",
|
| 21 |
+
"num_attention_heads": 12,
|
| 22 |
+
"num_hidden_layers": 12,
|
| 23 |
+
"pad_token_id": 0,
|
| 24 |
+
"pooler_fc_size": 768,
|
| 25 |
+
"pooler_num_attention_heads": 12,
|
| 26 |
+
"pooler_num_fc_layers": 3,
|
| 27 |
+
"pooler_size_per_head": 128,
|
| 28 |
+
"pooler_type": "first_token_transform",
|
| 29 |
+
"problem_type": "single_label_classification",
|
| 30 |
+
"tie_word_embeddings": true,
|
| 31 |
+
"transformers_version": "5.8.1",
|
| 32 |
+
"type_vocab_size": 2,
|
| 33 |
+
"use_cache": false,
|
| 34 |
+
"vocab_size": 119547
|
| 35 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:778cbfa676dd51696e266e71b14db96cb4f9ff4585b5250709bbfc713ca3910b
|
| 3 |
+
size 711443432
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_lower_case": false,
|
| 5 |
+
"is_local": false,
|
| 6 |
+
"local_files_only": false,
|
| 7 |
+
"mask_token": "[MASK]",
|
| 8 |
+
"model_max_length": 512,
|
| 9 |
+
"pad_token": "[PAD]",
|
| 10 |
+
"sep_token": "[SEP]",
|
| 11 |
+
"strip_accents": null,
|
| 12 |
+
"tokenize_chinese_chars": true,
|
| 13 |
+
"tokenizer_class": "BertTokenizer",
|
| 14 |
+
"unk_token": "[UNK]"
|
| 15 |
+
}
|