Logo Lanfrica

Nehmyabiruk/EthioMart-Amharic-NER

Domain:

natural language processing

Record type:

modelproject
Creator:
Neh
Host:
# EthioMart Amharic NER **Named Entity Recognition for Amharic E-commerce Telegram Messages** Fine-tuned **XLM-RoBERTa** model to extract key entities (**Product**, **PRICE**, **LOC**) from Amharic Telegram e-commerce posts β€” powering vendor analytics and micro-lending decisions for **EthioMart**. ## 🎯 Project Goal Transform messy Telegram vendor messages into structured data to: - Centralize e-commerce information from multiple channels - Identify promising vendors for micro-lending - Support EthioMart's vision of becoming Ethiopia's unified Telegram e-commerce hub **Target entities**: - **Product** (B-Product / I-Product) - **PRICE** (B-PRICE / I-PRICE) - **LOCATION** (B-LOC / I-LOC) ## ✨ Features - Telegram message scraping from 5+ Ethiopian e-commerce channels - Text cleaning & basic rule-based pre-annotation - Manual labeling in CoNLL format - Fine-tuning XLM-RoBERTa for Amharic NER - Per-class & overall evaluation metrics (seqeval) - Automatic performance bar chart popup after training ## πŸ“‚ Project Structure ethiomart-amharic-ner/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ scraper.py # Collects messages from Telegram channels β”‚ β”œβ”€β”€ preprocessing.py # Cleans text & generates pre-annotated CSV β”‚ └── train_Ner.py # Full NER training & evaluation pipeline β”œβ”€β”€ data/ β”‚ β”œβ”€β”€ raw/ β”‚ β”‚ └── telegram_raw.csv # Raw scraped messages (channel, text, views, date...) β”‚ β”œβ”€β”€ processed/ β”‚ β”‚ └── annotated_ner.csv # Pre-annotated or manually corrected data β”‚ └── labels/ β”‚ β”œβ”€β”€ train.conll # Training set in CoNLL format β”‚ └── valid.conll # Validation set β”œβ”€β”€ models/ β”‚ └── xlm-roberta-amharic-ner-final/ # Saved fine-tuned model (not in git) β”œβ”€β”€ requirements.txt β”œβ”€β”€ .gitignore └── README.md ## πŸš€ Quick Start ### 1. Clone the repository ```bash git clone github.com cd EthioMart-Amharic-NER 2. Install dependencies Bashpip install -r requirements.txt requirements.txt c …