Text Classification
Transformers
PyTorch
Safetensors
xlm-roberta
language-identification
african-languages
twitter
text-embeddings-inference
Instructions to use HausaNLP/AfriSentiLID with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HausaNLP/AfriSentiLID with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="HausaNLP/AfriSentiLID")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("HausaNLP/AfriSentiLID") model = AutoModelForSequenceClassification.from_pretrained("HausaNLP/AfriSentiLID", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
Yesterday
-
Clean model card and add safetensors weights
Verified signatureRewritten card: correct model id, languages, dataset sizes and test scores; removed text copied from another model card; usage, fine-tuning, limitations and citation. Adds model.safetensors (identical weights to pytorch_model.bin).e88b868
-
Update README.md
0668868 -
Update README.md
5291d34 -
Upload tokenizer
9a73066 -
Upload XLMRobertaForSequenceClassification
f97a006 -
Update README.md
fc8a878 -
Update README.md
e164fcd -
Update README.md
8739c11
-
initial commit
7894b85