Logo Lanfrica

Seya-prog/Building-an-Amharic-E-commerce-Data-Extractor

Domain:

natural language processing

Record type:

software
Creator:
Sey
Host:
# EthioMart – Amharic E-commerce Data Extractor A comprehensive data pipeline for extracting and analyzing Amharic e-commerce data from Telegram channels, with Named Entity Recognition (NER) capabilities and vendor analytics. ## 🎯 Project Overview This project provides tools to: 1. Collect and preprocess Amharic e-commerce data from Telegram 2. Extract structured information using NER (products, prices, locations) 3. Analyze vendor performance and calculate lending scores 4. Visualize results with proper Amharic text rendering ## πŸ“ Project Structure ``` . β”œβ”€β”€ data/ # Data storage β”‚ β”œβ”€β”€ ner/ # NER annotation files β”‚ β”œβ”€β”€ preprocessed/ # Cleaned data β”‚ └── raw/ # Raw scraped data β”œβ”€β”€ Models/ # Trained NER models β”œβ”€β”€ notebooks/ # Analysis notebooks β”œβ”€β”€ scripts/ # Core pipeline scripts β”œβ”€β”€ test/ # Unit tests └── requirements.txt # Dependencies ``` ## πŸš€ Getting Started 1. **Setup Environment**: ```bash # Create virtual environment python -m venv .venv source .venv/bin/activate # Linux/Mac .venv\Scripts\activate # Windows # Install dependencies pip install -r requirements.txt ``` 2. **Configure Telegram API**: ```bash # Windows set TG_API_ID=your_api_id set TG_API_HASH=your_api_hash # Linux/Mac export TG_API_ID=your_api_id export TG_API_HASH=your_api_hash ``` 3. **Run Data Pipeline**: ```bash # 1. Collect and preprocess data python scripts/telegram_ingest_preprocess.py # 2. Add view counts python scripts/fetch_telegram_views.py ``` 4. **Run Tests**: ```bash python -m unittest discover test ``` ## πŸ“Š Features ### 1. Data Collection - Automated Telegram channel scraping - Amharic text normalization - Media file downloading - View count tracking ### 2. Named Entity Recognition - Fine-tuned XLM-RoBERTa model - Entities: Products, Prices, Locations - Model interpretability with SHAP/LIME - Performance metrics: | Model | F1 Score | |-------|----------| | XLM- …