EthioMartNER is an AI-powered Amharic Named Entity Recognition (NER) system for extracting products, prices, and locations from Telegram e-commerce messages. It powers a centralized shopping hub by fine-tuning multilingual transformers and scoring vendors for micro-lending insights.
# EthioMart NER Pipeline
An AI-powered Named Entity Recognition (NER) pipeline for Amharic e-commerce text analysis, designed for EthioMart's micro-lending platform.
## π― Project Overview
This project implements a comprehensive AI pipeline that:
1. **Scrapes Ethiopian Telegram e-commerce channels** for real-time data
2. **Processes and cleans Amharic text** with advanced NLP techniques
3. **Fine-tunes transformer models** for Amharic NER tasks
4. **Compares multiple models** to select the best performer
5. **Provides model interpretability** using SHAP and LIME
6. **Generates vendor scorecards** for micro-lending decisions
## ποΈ Architecture
```
ethioMartNER/
βββ src/ # Source code modules
β βββ data/ # Data ingestion and preprocessing
β βββ ner/ # NER model training and evaluation
β βββ interpretability/ # Model interpretability tools
β βββ vendor/ # Vendor analytics and scoring
βββ scripts/ # Pipeline execution scripts
βββ data/ # Data storage
β βββ raw/ # Raw scraped data
β βββ processed/ # Preprocessed data
β βββ labelled/ # CONLL format datasets
βββ models/ # Trained models
βββ outputs/ # Analytics results and scorecards
βββ logs/ # Execution logs
βββ notebooks/ # Jupyter notebooks for analysis
βββ tests/ # Unit tests
```
## π Quick Start
### 1. Environment Setup
```bash
# Clone the repository
git clone
github.com
cd ethioMartNER
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Install pre-commit hooks
pre-commit install
```
### 2. Configuration
1. **Set up Telegram API credentials:**
```bash
# Copy and edit the environment file
cp .env.example .env
```
Add your Telegram API credentials to `.env β¦