Update README.md
Browse files
README.md
CHANGED
|
@@ -1,33 +1,37 @@
|
|
| 1 |
---
|
| 2 |
-
pretty_name: EPDK
|
| 3 |
tags:
|
| 4 |
- turkish
|
| 5 |
- energy-market
|
| 6 |
- legislation
|
| 7 |
- regulations
|
| 8 |
- epdk
|
| 9 |
-
- text-extraction
|
| 10 |
- ocr
|
|
|
|
|
|
|
| 11 |
- domain-specific
|
| 12 |
- language-modeling
|
| 13 |
- legal
|
| 14 |
dataset_info:
|
| 15 |
features:
|
| 16 |
-
- name:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
dtype: string
|
| 18 |
-
- name:
|
| 19 |
dtype: string
|
| 20 |
splits:
|
| 21 |
- name: train
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
dataset_size: 142398992
|
| 26 |
configs:
|
| 27 |
-
- config_name:
|
| 28 |
data_files:
|
| 29 |
- split: train
|
| 30 |
-
path:
|
| 31 |
language:
|
| 32 |
- tr
|
| 33 |
license: apache-2.0
|
|
@@ -35,46 +39,94 @@ task_categories:
|
|
| 35 |
- text-generation
|
| 36 |
size_categories:
|
| 37 |
- 1K<n<10K
|
|
|
|
| 38 |
---
|
| 39 |
-
|
| 40 |
-
# Dataset Card for EPDK Electricity Market Legislation Dataset
|
| 41 |
|
| 42 |
## Dataset Summary
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
|
|
|
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
-
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
## Languages
|
| 61 |
|
| 62 |
-
|
|
|
|
|
|
|
| 63 |
|
| 64 |
-
## Data
|
| 65 |
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
```json
|
| 69 |
-
{
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
```
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
year = {2025},
|
| 76 |
-
url = {
|
| 77 |
}
|
| 78 |
```
|
| 79 |
|
| 80 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: EPDK Corpus (v2)
|
| 3 |
tags:
|
| 4 |
- turkish
|
| 5 |
- energy-market
|
| 6 |
- legislation
|
| 7 |
- regulations
|
| 8 |
- epdk
|
|
|
|
| 9 |
- ocr
|
| 10 |
+
- qwen-vl
|
| 11 |
+
- text-extraction
|
| 12 |
- domain-specific
|
| 13 |
- language-modeling
|
| 14 |
- legal
|
| 15 |
dataset_info:
|
| 16 |
features:
|
| 17 |
+
- name: id
|
| 18 |
+
dtype: string
|
| 19 |
+
- name: text
|
| 20 |
+
dtype: string
|
| 21 |
+
- name: kind
|
| 22 |
dtype: string
|
| 23 |
+
- name: method
|
| 24 |
dtype: string
|
| 25 |
splits:
|
| 26 |
- name: train
|
| 27 |
+
num_examples: 3577
|
| 28 |
+
download_size: 72000000
|
| 29 |
+
dataset_size: 145000000
|
|
|
|
| 30 |
configs:
|
| 31 |
+
- config_name: v2
|
| 32 |
data_files:
|
| 33 |
- split: train
|
| 34 |
+
path: v2/final_corpus_dataset.jsonl
|
| 35 |
language:
|
| 36 |
- tr
|
| 37 |
license: apache-2.0
|
|
|
|
| 39 |
- text-generation
|
| 40 |
size_categories:
|
| 41 |
- 1K<n<10K
|
| 42 |
+
version: 2.0.0
|
| 43 |
---
|
| 44 |
+
# Dataset Card for **EPDK Electricity Market Corpus (v2)**
|
|
|
|
| 45 |
|
| 46 |
## Dataset Summary
|
| 47 |
+
This corpus contains high-quality Turkish text extracted from **documents published by the Turkish Energy Market Regulatory Authority (EPDK – Enerji Piyasası Düzenleme Kurumu)**.
|
| 48 |
+
The source materials include regulations, board decisions, and official communiqués related to the **electricity market legislation**.
|
| 49 |
|
| 50 |
+
Version 2.0.0 introduces a **complete re-extraction of the text using the Qwen-2.5-VL vision-language model**, which achieves dramatically better OCR accuracy than Tesseract—particularly on scanned and complex multi-column PDFs.
|
| 51 |
+
The result is a significantly cleaner and more semantically faithful representation of the original legal texts.
|
| 52 |
|
| 53 |
+
---
|
| 54 |
|
| 55 |
+
## Version History
|
| 56 |
|
| 57 |
+
| Version | Description | Date | Notes |
|
| 58 |
+
|----------|--------------|------|-------|
|
| 59 |
+
| **v1.0.0** | Initial release using Tesseract OCR (≈ 3.4 K docs) | 2025-04 | Baseline version. Stored under `/v1/`. |
|
| 60 |
+
| **v2.0.0** | Re-extracted with Qwen-2.5-VL OCR (≈ 3.6 K docs), normalized fields (`id`, `text`, `kind`, `method`) | 2025-10 | Recommended for downstream use. |
|
| 61 |
|
| 62 |
+
To load a specific version:
|
| 63 |
|
| 64 |
+
```python
|
| 65 |
+
from datasets import load_dataset
|
| 66 |
+
ds = load_dataset("ogulcanakca/epdk_elektrik_piyasasi_mevzuat", revision="v2.0.0")
|
| 67 |
+
```
|
| 68 |
|
| 69 |
+
---
|
| 70 |
+
|
| 71 |
+
## Intended Uses
|
| 72 |
+
|
| 73 |
+
Designed primarily for **language-model domain adaptation** and **continued pre-training** on Turkish regulatory language.
|
| 74 |
+
Potential downstream tasks include:
|
| 75 |
+
|
| 76 |
+
* Legal Question Answering over EPDK documents
|
| 77 |
+
* Summarization of laws and regulations
|
| 78 |
+
* Document classification or clustering (e.g., tebliğ / karar / yönetmelik)
|
| 79 |
+
* Information retrieval and RAG training for energy-sector LLMs
|
| 80 |
+
|
| 81 |
+
---
|
| 82 |
|
| 83 |
## Languages
|
| 84 |
|
| 85 |
+
All text is in **Turkish (`tr`)**.
|
| 86 |
+
|
| 87 |
+
---
|
| 88 |
|
| 89 |
+
## Data Fields
|
| 90 |
|
| 91 |
+
| Field | Type | Description |
|
| 92 |
+
| -------- | ------ | ---------------------------------------------------------------- |
|
| 93 |
+
| `id` | string | Unique SHA-1-based identifier for the document |
|
| 94 |
+
| `text` | string | Cleaned text extracted from the source file |
|
| 95 |
+
| `kind` | string | File type (`docx`, `pdf`, `xls`, etc.) |
|
| 96 |
+
| `method` | string | Extraction method (`python-docx`, `pandas`, `qwen-vl-ocr`, etc.) |
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## Example Instance
|
| 101 |
|
| 102 |
```json
|
| 103 |
+
{
|
| 104 |
+
"id": "b3f7a6d9c49e",
|
| 105 |
+
"text": "Enerji Piyasası Düzenleme Kurumundan:\nKURUL KARARI\nKarar No: 9284 Karar Tarihi: 02/04/2020\n...",
|
| 106 |
+
"kind": "docx",
|
| 107 |
+
"method": "python-docx"
|
| 108 |
+
}
|
| 109 |
```
|
| 110 |
+
|
| 111 |
+
---
|
| 112 |
+
|
| 113 |
+
## Data Structure & Access
|
| 114 |
+
|
| 115 |
+
* Format: `JSONL` (one document per line)
|
| 116 |
+
* Total examples: ≈ 3 577
|
| 117 |
+
* Dataset path: `v2/final_corpus_dataset.jsonl`
|
| 118 |
+
|
| 119 |
+
---
|
| 120 |
+
|
| 121 |
+
```bibtex
|
| 122 |
+
@dataset{ogulcanakca_epdk_corpus_v2,
|
| 123 |
+
author = {Oğulcan Akca},
|
| 124 |
+
title = {EPDK Corpus (v2)},
|
| 125 |
year = {2025},
|
| 126 |
+
url = {https://huggingface.co/datasets/ogulcanakca/epdk_elektrik_piyasasi_mevzuat}
|
| 127 |
}
|
| 128 |
```
|
| 129 |
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
[akca_ogulcan@hotmail.com](mailto:akca_ogulcan@hotmail.com)
|