Back to Work
Research and experimentWorking prototypeApplied AIData engineering

PidginNuance

Sentiment and emotion classification for Nigerian Pidgin

Not dated in the source repositoryNerat Dazam

The problem

The problem

Most sentiment-analysis models are trained on standard English and miss the tone, sarcasm and cultural context carried in Nigerian Pidgin, a widely spoken language that mainstream NLP tooling largely ignores.

The approach

A sentiment classifier (positive, negative, neutral), built on the Davlan/naija-twitter-sentiment-afriberta-large baseline, is paired with an emotion classifier fine-tuned from Davlan/afro-xlmr-base across 16 culturally specific categories (such as hustle_fatigue, market_energy and forming). Emotion is fed into the sentiment model as extra context, since tone and sarcasm often change a sentence's real meaning. An AI agent, built with smolagents, uses an LLM to propose an emotion label for new text, asks the user to confirm or correct it, and then runs the sentiment classifier — with a Streamlit dashboard and a terminal demo for trying it directly.

Implementation

Implemented

  • Sentiment classification (positive/negative/neutral) on a fine-tuned AfriBERTa baseline
  • Emotion classification across 16 Pidgin-specific categories, fine-tuned from AFRO-XLM-R
  • Context-aware sentiment that factors in the predicted emotion
  • An smolagents-based LLM agent for interactive, human-confirmed emotion labeling
  • Streamlit dashboard and terminal demo
PythonHugging Face TransformersAfriBERTaAFRO-XLM-RsmolagentsStreamlit

Results and status

Results and status

A research pipeline, not a deployed product — no accuracy or usage figures are claimed here beyond what the repository documents. Verified directly from the source: a working end-to-end pipeline across two Hugging Face datasets published by Wazobia Labs (500 training rows, 253 evaluation rows, CC-BY-4.0) and 28 commits of real implementation.

Contributors & attribution

Contributors and attribution

Built by Nerat Dazam.

Have a similar operational challenge?

Tell us what's happening and we'll tell you honestly whether it's something we can help with.

Let's talk
Data Fellows

An independent automation studio solving recurring operational problems with software, data and AI, grown from a community of data learners and builders that's still going strong.

Partner network

We co-build with accelerators, training partners, and allied communities who keep Data Fellows grounded in real outcomes.

AWS StartupsMicrosoft for StartupsDataCamp ClassroomZummit AfricaVatebra AcademyCommunitechAccelerator CentreTBDC
© 2026 Data Fellows Inc. All rights reserved.Built by Data Fellows Inc.