Skip to main content

A Yoruba language model to predict sentiment of Yoruba texts

Project description

Yoruba-sentiment-checker

Yorùbá Sentiment Checker A hybrid (Rule-Based + Machine Learning) sentiment analysis tool for classifying Yorùbá text into Positive, Negative, or Neutral categories. This project addresses the challenge of building NLP tools for low-resource languages by combining the precision of a curated lexicon with the contextual understanding of a statistical model.

Features Hybrid Architecture: Integrates a comprehensive, hand-curated Yorùbá sentiment lexicon with a Logistic Regression classifier for robust sentiment prediction.

Web Application: A user-friendly Streamlit web app for real-time sentiment analysis of text or uploaded files. https://yoruba-sentiment-checker.streamlit.app/

Public Resources: Provides a valuable public sentiment lexicon and sentiment analysis language model for Yorùbá to support further NLP research.

Reproducible Research: Complete code and methodology are provided for full transparency and reproducibility.

Installation & Usage

Clone the repository:

bash

git clone https://github.com/Kasaba6330/yoruba-sentiment-checker.git

cd yoruba-sentiment-checker

Install dependencies:

bash

pip install -r requirements.txt

Run the web application:

bash

streamlit run app.py

Data

The model is trained on an extended dataset built upon the Yorùbá portion of the AfriSenti-SemEval dataset.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

License

This project is licensed under the Apache-2.0 License.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yorsent-1.0.tar.gz (170.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yorsent-1.0-py3-none-any.whl (169.4 kB view details)

Uploaded Python 3

File details

Details for the file yorsent-1.0.tar.gz.

File metadata

  • Download URL: yorsent-1.0.tar.gz
  • Upload date:
  • Size: 170.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for yorsent-1.0.tar.gz
Algorithm Hash digest
SHA256 59b5e299777c140d7a01e8504e1cf9c779f19773c03dd7007e654d20a4caac8e
MD5 6f399346f2d284f0769b3dfecdf6e435
BLAKE2b-256 c462d36fbb11245468d66af18629d8852a50404ae3d0ced0e943d300e99ae2a9

See more details on using hashes here.

File details

Details for the file yorsent-1.0-py3-none-any.whl.

File metadata

  • Download URL: yorsent-1.0-py3-none-any.whl
  • Upload date:
  • Size: 169.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for yorsent-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e085a2f5b97b2644afd1941bfe38d5d46feca0b1c056eb9a378e17d0c25bd19
MD5 63b9920338a4178c97f15b554368124d
BLAKE2b-256 4299d7a5a9191d5e0c153726684af72a5d3b35cc8bbc2ed4fe13169bccb74951

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page