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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59b5e299777c140d7a01e8504e1cf9c779f19773c03dd7007e654d20a4caac8e
|
|
| MD5 |
6f399346f2d284f0769b3dfecdf6e435
|
|
| BLAKE2b-256 |
c462d36fbb11245468d66af18629d8852a50404ae3d0ced0e943d300e99ae2a9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e085a2f5b97b2644afd1941bfe38d5d46feca0b1c056eb9a378e17d0c25bd19
|
|
| MD5 |
63b9920338a4178c97f15b554368124d
|
|
| BLAKE2b-256 |
4299d7a5a9191d5e0c153726684af72a5d3b35cc8bbc2ed4fe13169bccb74951
|