Update README.md
Browse files
README.md
CHANGED
|
@@ -1,9 +1,109 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
#
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: mit
|
| 5 |
+
tags:
|
| 6 |
+
- knowledge-graph
|
| 7 |
+
- rdf
|
| 8 |
+
- information-extraction
|
| 9 |
+
- uk-government-contracts
|
| 10 |
+
- procurement
|
| 11 |
+
- text-to-kg
|
| 12 |
+
- nlp
|
| 13 |
+
- trustworthy-ai
|
| 14 |
+
task_categories:
|
| 15 |
+
- text-generation
|
| 16 |
+
- token-classification
|
| 17 |
+
size_categories:
|
| 18 |
+
- 10K<n<100K
|
| 19 |
+
---
|
| 20 |
|
| 21 |
+
# Text-to-KG Construction Dataset (UK Government Contracts)
|
| 22 |
|
| 23 |
+
## Dataset Summary
|
| 24 |
|
| 25 |
+
This dataset contains **9,244 verified UK government procurement contracts** paired with structured **RDF knowledge graph triples**, constructed for the task of automated Text-to-KG extraction. It was developed as part of a UEL–Depixen industrial placement research project focused on building **trustworthy, hallucination-free domain-specific SLMs**.
|
| 26 |
|
| 27 |
+
This dataset was used to fine-tune:
|
| 28 |
+
- 👉 [BSVGK/phi35-mini-lora-text2kg-merged](https://huggingface.co/BSVGK/phi35-mini-lora-text2kg-merged) — Zero hallucination across 1,387 unseen contracts
|
| 29 |
+
- 👉 [BSVGK/phi35-mini-lora-text2kg-adapter](https://huggingface.co/BSVGK/phi35-mini-lora-text2kg-adapter) — LoRA adapter
|
| 30 |
+
|
| 31 |
+
## Dataset Details
|
| 32 |
+
|
| 33 |
+
| Property | Value |
|
| 34 |
+
|----------|-------|
|
| 35 |
+
| Domain | UK Government Procurement Contracts |
|
| 36 |
+
| Total Samples | 9,244 training + 1,387 test |
|
| 37 |
+
| Format | Contract text → RDF Triples |
|
| 38 |
+
| Language | English |
|
| 39 |
+
| Source | UK Government procurement data |
|
| 40 |
+
| License | MIT |
|
| 41 |
+
|
| 42 |
+
## Dataset Structure
|
| 43 |
+
|
| 44 |
+
Each sample contains:
|
| 45 |
+
|
| 46 |
+
{
|
| 47 |
+
"input": "Raw UK government contract text...",
|
| 48 |
+
"output": [
|
| 49 |
+
{"subject": "entity_1", "predicate": "relation", "object": "entity_2"},
|
| 50 |
+
{"subject": "entity_1", "predicate": "relation", "object": "entity_3"}
|
| 51 |
+
]
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
## Construction Process
|
| 55 |
+
|
| 56 |
+
1. **Data Collection** — UK government procurement contracts collected from public sources
|
| 57 |
+
2. **Preprocessing** — Cleaning, deduplication, and normalisation of contract text
|
| 58 |
+
3. **Triple Extraction** — Manual and automated RDF triple annotation
|
| 59 |
+
4. **Verification** — Each triple verified against source contract text
|
| 60 |
+
5. **Quality Control** — Dual-level hallucination check (L1: relation validity, L2: entity grounding)
|
| 61 |
+
|
| 62 |
+
## Hallucination Evaluation Framework
|
| 63 |
+
|
| 64 |
+
This dataset was evaluated using a **novel dual-level hallucination framework**:
|
| 65 |
+
|
| 66 |
+
- **L1 — Relation Validity:** All relations verified against a predefined ontology
|
| 67 |
+
- **L2 — Entity Grounding:** All entities grounded in the source contract text
|
| 68 |
+
|
| 69 |
+
This ensured **zero hallucination** in the fine-tuned Phi-3.5 model across 1,387 unseen test contracts.
|
| 70 |
+
|
| 71 |
+
## Models Trained on This Dataset
|
| 72 |
+
|
| 73 |
+
| Model | F1 | BERTScore | Hallucination Rate |
|
| 74 |
+
|-------|----|-----------|--------------------|
|
| 75 |
+
| Phi-3.5 Mini Instruct (LoRA) | **0.9954** | **0.9997** | **0.00%** |
|
| 76 |
+
| Gemma 2 2B IT (QLoRA) | competitive | competitive | higher |
|
| 77 |
+
|
| 78 |
+
## Intended Use
|
| 79 |
+
|
| 80 |
+
- Training SLMs for knowledge graph construction
|
| 81 |
+
- Research in trustworthy and hallucination-free NLP
|
| 82 |
+
- Information extraction from legal and procurement documents
|
| 83 |
+
- RDF triple generation for semantic web applications
|
| 84 |
+
|
| 85 |
+
## Out of Scope
|
| 86 |
+
|
| 87 |
+
- Non-English contracts
|
| 88 |
+
- Contracts outside UK government procurement domain
|
| 89 |
+
- General purpose NLP tasks
|
| 90 |
+
|
| 91 |
+
## Citation
|
| 92 |
+
|
| 93 |
+
@misc{bubathula2026texttokg_dataset,
|
| 94 |
+
author = {Sai Venkata Gopala Krishna Bubathula},
|
| 95 |
+
title = {Text-to-KG Construction Dataset: UK Government Procurement Contracts for RDF Triple Extraction},
|
| 96 |
+
year = {2026},
|
| 97 |
+
publisher = {HuggingFace},
|
| 98 |
+
url = {https://huggingface.co/datasets/BSVGK/Text_to_KG_Construction_Dataset},
|
| 99 |
+
institution = {University of East London & Depixen}
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
## Developer
|
| 103 |
+
|
| 104 |
+
**Sai Venkata Gopala Krishna Bubathula**
|
| 105 |
+
- 🎓 MSc Big Data Technologies, University of East London
|
| 106 |
+
- 🏢 AI Engineer — UEL–Depixen Industrial Placement
|
| 107 |
+
- 🔗 [GitHub](https://github.com/BSVGK1919)
|
| 108 |
+
- 🔗 [LinkedIn](https://www.linkedin.com/in/sai-venkata-gopala-krishna-bubathula-a05a26283/)
|
| 109 |
+
- 🔗 [HuggingFace](https://huggingface.co/BSVGK)
|