ogulcanakca commited on
Commit
08bf85f
·
verified ·
1 Parent(s): c7aec0d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +83 -31
README.md CHANGED
@@ -1,33 +1,37 @@
1
  ---
2
- pretty_name: EPDK Electricity Market Legislation Dataset
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: source_file
 
 
 
 
17
  dtype: string
18
- - name: extracted_text
19
  dtype: string
20
  splits:
21
  - name: train
22
- num_bytes: 142398992
23
- num_examples: 3424
24
- download_size: 70357154
25
- dataset_size: 142398992
26
  configs:
27
- - config_name: default
28
  data_files:
29
  - split: train
30
- path: data/train-*
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
- This dataset contains cleaned Turkish text extracted from approximately 3,300 documents related to the Turkish Energy Market Regulatory Authority (EPDK - Enerji Piyasası Düzenleme Kurumu) and the Turkish electricity market legislation. The original documents were in various formats (PDF, DOCX, DOC, XLSX), including scanned documents that required Optical Character Recognition (OCR).
 
45
 
46
- The primary purpose of creating this dataset was to facilitate domain adaptation for Large Language Models (LLMs), enabling them to better understand and process texts specific to the Turkish energy regulation domain.
47
 
48
- This version of the dataset contains the **cleaned but unchunked** text. Each entry corresponds to one processed source document.
49
 
50
- ## Supported Tasks and Leaderboards
 
 
 
51
 
52
- This dataset is primarily intended for **language modeling** tasks, specifically **domain adaptation** via continued pre-training or fine-tuning of causal language models. It could potentially serve as a base for downstream tasks like:
53
 
54
- * Question Answering over EPDK regulations
55
- * Summarization of legal/regulatory documents
56
- * Text Classification (e.g., document type)
 
57
 
58
- There are no official leaderboards associated with this dataset at this time.
 
 
 
 
 
 
 
 
 
 
 
 
59
 
60
  ## Languages
61
 
62
- The text in the dataset is exclusively in **Turkish (tr)**.
 
 
63
 
64
- ## Data Instances
65
 
66
- The dataset is provided in JSON Lines (`.jsonl`) format. Each line represents a single processed document and is a JSON object. A typical instance looks like this:
 
 
 
 
 
 
 
 
 
67
 
68
  ```json
69
- {"source_file": "doc_files_converted_to_docx\\_PortalAdmin_Uploads_Content_FastAccess_Sayaclar565d9c06.docx", "extracted_text": "22/4/2011 tarihli ve 27913 sayılı Resmi Gazetede yayımlanmıştır.\nEnerji Piyasası Düzenleme Kurumundan\nElektrik Piyasasında Kullanılacak Sayaçlar Hakkında Tebliğde Değişiklik Yapılmasına İlişkin Tebliğ\nMADDE 1- 22/03/2003 tarihli ve 25056 sayılı Resmi Gazete'de yayımlanan Elektrik Piyasasında Kullanılacak Sayaçlar Hakkında Tebliğin geçici 4 üncü maddesi birinci fıkra (f) bendi aşağıdaki şekilde değiştirilmiş, (g) bendine “Dağıtım sistemine yüksek gerilim seviyesinden bağlı” ifadesinden sonra gelmek üzere “ve trafo gücü 630 kVA ve üzerinde olan” ibaresi eklenmiştir.\n“f) İletim sistemine bağlı serbest tüketicilerin ölçüm noktaları, tüketici tesislerindeki indirici trafonun giriş tarafında yer alır.”\nYürürlük\nMADDE 2- Bu Tebliğ yayımı tarihinde yürürlüğe girer.\nYürütme\nMADDE 3- Bu Tebliğ hükümlerini Enerji Piyasası Düzenleme Kurumu Başkanı yürütür."}
70
- ```
 
 
 
 
71
  ```
72
- @dataset{ogulcanakca_epdk_mevzuat,
73
- author = {ogulcanakca},
74
- title = {EPDK Electricity Market Legislation Dataset},
 
 
 
 
 
 
 
 
 
 
 
 
75
  year = {2025},
76
- url = {[https://huggingface.co/datasets/ogulcanakca/epdk_elektrik_piyasasi_mevzuat](https://huggingface.co/datasets/ogulcanakca/epdk_elektrik_piyasasi_mevzuat)}
77
  }
78
  ```
79
 
80
- Contact: akca_ogulcan@hotmail.com
 
 
 
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)