Logo Lanfrica

Mahek-01001/amharic-dbpediallm-pipeline

Domaine:

natural language processing

Type de record:

software
Créateur:
Mah
HĂ´te:
# 🇪🇹 Amharic DBpedia: LLM-Based RDF Extraction Pipeline ## 📝 Overview > Built as part of exploration for DBpedia GSoC (Amharic LLM Pipeline project) This project presents a prototype pipeline for extracting structured knowledge from unstructured text and converting it into RDF triples aligned with the DBpedia Ontology. It is designed as part of the GSoC exploration for automating knowledge graph construction in the Amharic DBpedia chapter using Large Language Models (LLMs). --- ## ⚠️ Problem Statement Wikipedia contains vast amounts of unstructured data, especially in low-resource languages like Amharic. Converting this into Linked Open Data (LOD) remains largely manual or semi-automated. This project aims to automate: * Entity extraction * Relation prediction * Ontology-aligned RDF generation using LLMs while ensuring semantic correctness through ontology validation. --- ## 🏗️ Architecture ```text Text Input (Amharic / English) ↓ LLM Extraction (Real / Mock) ↓ Structured JSON (Entities + Relations) ↓ Entity Normalization ↓ Ontology Mapping & Validation ↓ RDF Triple Generation (rdflib) ↓ FastAPI Backend ↔ UI Layer ``` --- ## ✨ Features * **Modular Pipeline** Separate components for extraction, normalization, mapping, and RDF generation * **LLM Integration** Supports real LLMs with fallback mock system for reliability * **Ontology-Aware Mapping** Aligns predicates with DBpedia ontology (`dbo:` namespace) * **Class + Relation Prediction** Generates both `rdf:type` and relationship triples * **RDF Output (Turtle)** Standardized and reusable knowledge graph format * **API Support** FastAPI backend with interactive Swagger documentation * **End-to-End Demo** UI + API integration for real-time testing --- ## 📂 Project Structure ```text amharic-dbpediallm-pipeline/ ├── pipeline/ │ ├── extractor.py # LLM / mock extraction │ ├── normalizer.py # Entity normalization │ ├── mapper.py # Ontology mapping │ └── rdf_generator …