BSVGK commited on
Commit
226b501
·
verified ·
1 Parent(s): 0c8ab79

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +48 -0
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ task_categories:
6
+ - text2text-generation
7
+ - information-extraction
8
+ task_ids:
9
+ - knowledge-graph-construction
10
+ pretty_name: Text-to-KG Construction Contracts Dataset
11
+ size_categories:
12
+ - 1K<n<10K
13
+ ---
14
+
15
+ # Text-to-Knowledge Graph Construction Contracts Dataset
16
+
17
+ ## Dataset Description
18
+
19
+ This dataset is designed for training Small Language Models (SLMs) to convert unstructured natural language text into structured Knowledge Graph (KG) triples.
20
+
21
+ The data is derived from UK construction contract records and has been transformed into an instruction-based format suitable for fine-tuning models such as Phi-3.5 Mini and Gemma.
22
+
23
+ The dataset follows a strict ontology-driven approach to ensure semantic consistency and high-quality structured outputs.
24
+
25
+ ---
26
+
27
+ ## Dataset Summary
28
+
29
+ | Stage | Records |
30
+ |------|--------|
31
+ | Raw dataset | 15,249 |
32
+ | Cleaned dataset | 9,244 |
33
+ | Train set | 6,470 |
34
+ | Validation set | 1,387 |
35
+ | Test set | 1,387 |
36
+
37
+ ---
38
+
39
+ ## Dataset Structure
40
+
41
+ Each record follows an instruction-based format:
42
+
43
+ ```json
44
+ {
45
+ "instruction": "Convert the given construction contract text into structured knowledge graph triples.",
46
+ "input": "Contract Contract_000001 records that ABC Council awarded XYZ Ltd a contract worth £500000 on 2024-01-15 for building construction work in London, with CPV code 45210000.",
47
+ "output": "(Contract_000001, rdf:type, Contract)\n(Contract_000001, hasBuyer, ABC Council)\n(Contract_000001, hasSupplier, XYZ Ltd)\n..."
48
+ }