dkqjrm commited on
Commit
b9b318d
·
verified ·
1 Parent(s): bad953c

Add dataset README with conversion details

Browse files
Files changed (1) hide show
  1. README.md +64 -28
README.md CHANGED
@@ -1,28 +1,64 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: source_text
5
- dtype: string
6
- - name: tagged_text
7
- dtype: string
8
- - name: tokens
9
- list: string
10
- - name: ner_tags
11
- list: int64
12
- splits:
13
- - name: train
14
- num_bytes: 23327316
15
- num_examples: 21008
16
- - name: validation
17
- num_bytes: 5802411
18
- num_examples: 5000
19
- download_size: 8049407
20
- dataset_size: 29129727
21
- configs:
22
- - config_name: default
23
- data_files:
24
- - split: train
25
- path: data/train-*
26
- - split: validation
27
- path: data/validation-*
28
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # KLUE NER Dataset - Converted Format
2
+
3
+ This dataset is converted from the original KLUE NER dataset with entity tags in the format `<|B_LABEL|>entity<|E_LABEL|>`.
4
+
5
+ ## Dataset Structure
6
+
7
+ - **train**: 21,008 examples
8
+ - **validation**: 5,000 examples
9
+
10
+ ## Format Conversion
11
+
12
+ Original format: `<entity:label>`
13
+ Converted format: `<|B_LABEL|>entity<|E_LABEL|>`
14
+
15
+ ## Entity Tags Used
16
+
17
+ The following entity tags are used in this dataset:
18
+
19
+ - `DT`: Date (Begin/End tags `<|B_DT|>` and `<|E_DT|>`)
20
+ - `LC`: Location (Begin/End tags `<|B_LC|>` and `<|E_LC|>`)
21
+ - `OG`: Organization (Begin/End tags `<|B_OG|>` and `<|E_OG|>`)
22
+ - `PS`: Person (Begin/End tags `<|B_PS|>` and `<|E_PS|>`)
23
+ - `QT`: Quantity (Begin/End tags `<|B_QT|>` and `<|E_QT|>`)
24
+ - `TI`: Time (Begin/End tags `<|B_TI|>` and `<|E_TI|>`)
25
+
26
+ Total number of unique entity tokens: 30
27
+
28
+ ## Usage
29
+
30
+ ```python
31
+ from datasets import load_dataset
32
+
33
+ dataset = load_dataset("dkqjrm/klue-ner-converted")
34
+ print("Source text:", dataset['train'][0]['source_text'])
35
+ print("Tagged text:", dataset['train'][0]['tagged_text'])
36
+ ```
37
+
38
+ ## Fields
39
+
40
+ - `source_text`: Original sentence with entities (no tags)
41
+ - `tagged_text`: Converted sentence with `<|B_LABEL|>entity<|E_LABEL|>` format
42
+ - `tokens`: Original character-level tokens
43
+ - `ner_tags`: Original NER tag indices
44
+
45
+ ## Citation
46
+
47
+ ```bibtex
48
+ @misc{klue-ner-converted,
49
+ title={KLUE NER Dataset - Converted Format},
50
+ author={Converted from original KLUE dataset},
51
+ year={2024},
52
+ howpublished={\url{https://huggingface.co/datasets/dkqjrm/klue-ner-converted}}
53
+ }
54
+ ```
55
+
56
+ Original KLUE dataset:
57
+ ```bibtex
58
+ @article{park2021klue,
59
+ title={KLUE: Korean Language Understanding Evaluation},
60
+ author={Park, Sungjoon and Moon, Jihyung and Kim, Sungdong and Cho, Won Ik and Han, Jiyoon and Park, Jangwon and Song, Chisung and Kim, Junseong and Song, Yongsook and Taek Oh, Sang and others},
61
+ journal={arXiv preprint arXiv:2105.09680},
62
+ year={2021}
63
+ }
64
+ ```