Logo Lanfrica

Fre-Fentaw27/Building-Amharic-E-commerce-Data-Extractor-W4

Domain:

natural language processing
Creator:
Fre
Host:
Transform messy Telegram posts into a smart FinTech engine that reveals which vendors are the best candidates for a loan. # Building-Amharic-E-commerce-Data-Extractor-W4 # Building an Amharic E-commerce Data Extractor A system for extracting structured product information from Ethiopian Telegram e-commerce channels, with specialized Amharic NLP processing. ## πŸ“Œ Project Overview This project enables EthioMart to: 1. **Scrape** product listings from Ethiopian Telegram channels 2. **Process** Amharic text with specialized normalization 3. **Extract** key entities (products, prices, locations) 4. **Structure** data for centralized e-commerce catalog ## πŸ› οΈ Technical Components ### Core Modules - **Telegram Scraper**: Collects messages/media from channels - **Amharic Preprocessor**: Handles Ethiopic script normalization - **Labeling Tool**: Creates CoNLL-format datasets for NER ### Key Features - Amharic-specific text cleaning - Price pattern recognition (α‰₯ር/birr conversions) - Location entity detection (Addis Ababa neighborhoods) - Media download with metadata preservation ## πŸ“‚ Repository Structure Building-Amharic-E-commerce-Data-Extractor-W4/ β”œβ”€β”€ .venv/ β”œβ”€β”€ data/ β”‚ β”œβ”€β”€ clean/ β”‚ β”œβ”€β”€ raw/ β”‚ β”œβ”€β”€ for_annotation/ β”œβ”€β”€ notebooks/ β”‚ β”œβ”€β”€ preprocessing_task1.ipynb β”œβ”€β”€ scripts/ β”‚ β”œβ”€β”€ telegram_scraper.py β”‚ β”œβ”€β”€ realtime_ingest.py β”‚ β”œβ”€β”€ preprocess_telegramdata.py β”‚ β”œβ”€β”€ labelstudio_annotation.py β”‚ β”œβ”€β”€ convert_to_ls_json.py β”œβ”€β”€ .env # API credentials └── README.md └── .gitignore └── requirements.txt ## πŸš€ Quick Start ### 1. Prerequisites ````bash pip install -r requirements.txt ## βš™οΈ Configuration ### 1. Environment Setup Create a `.env` file in your project root: ```ini # Telegram API credentials (from my.telegram.org) TG_API_ID=your_api_id_here TG_API_HASH=your_api_hash_here PHONE_NUMBER=+251XXXXXXXXXX # Ethiopian number preferred # Optional settings MAX_MESSAGES=500 # Per channel MEDIA_DOWNLOAD=True ### 2. Run Pipeline # Step 1: Data Collection - python scripts/telegram_scraper.py # Step 2: Text Processing - python scripts/preprocess_telegramdata.py ```` ## Task 1: …