Logo Lanfrica

joss413/amharic-ner

Domain:

natural language processing

Record type:

model
Creator:
jos
Host:
Amharic Named Entity Recognition using AfroXLM-R # Amharic Named Entity Recognition An AI pipeline that classifies customer complaints, extracts structured ticket data, generates empathetic responses, and logs everything to a searchable dashboard. --- ## πŸš€ Live Demo πŸ‘‰ Try it on Hugging Face Spaces --- ## What It Does 1. Accepts any Amharic sentence as input 2. Tokenizes text using AfroXLM-R subword tokenizer 3. Predicts named entity tags for each token 4. Highlights entities with color-coded chips: πŸ”΄ PER β€” Person names (αˆ°α‹) 🟒 LOC β€” Locations (ቦታ) πŸ”΅ ORG β€” Organizations (α‹΅αˆ­αŒ…α‰΅) 🟑 DATE β€” Dates (α‰€αŠ•) 5. Displays entity summary cards with counts --- ## Screenshots | | | |:---:|:---:| | | | | *App Interface* | *Person & Location Detection* | | | | | *Organization & Date Detection* | *Entity Summary Cards* | --- ## Tech Stack - Python 3.10 - PyTorch β€” deep learning framework - HuggingFace Transformers β€” AfroXLM-R model - AfroXLM-R-base (Davlan/afro-xlmr-base) β€” pretrained on 17 African languages including Amharic - MasakhaNER 1.0 β€” Amharic NER dataset - Gradio β€” web interface - seqeval β€” NER evaluation metrics --- ## Architecture ``` amharic-ner/ β”‚ β”œβ”€β”€ app.py # Gradio web interface β”œβ”€β”€ requirements.txt # Dependencies β”œβ”€β”€ images/ # Screenshots β”‚ β”œβ”€β”€ screenshot1.png β”‚ β”œβ”€β”€ screenshot2.png β”‚ β”œβ”€β”€ screenshot3.png β”‚ └── screenshot4.png └── saved_model/ # Trained model (hosted on HuggingFace) β”œβ”€β”€ config.json β”œβ”€β”€ pytorch_model.bin β”œβ”€β”€ tokenizer files └── ner_config.json ``` --- ## Evaluation ``` (AfroXLM-R-base): 0.76 ``` --- ## Running Locally ```bash # Clone the repository git clone github.com cd amharic-ner # Install dependencies pip install -r requirements.txt # Run the app python app.py ```