Datasets:

Tasks:
Other
Modalities:
Text
Languages:
Swedish
Libraries:
Datasets
License:
Files changed (29) hide show
  1. README.md +182 -0
  2. data/simple_tags/lower.tar.gz +0 -3
  3. data/simple_tags/lower_mix.tar.gz +0 -3
  4. dataset_infos.json +0 -1
  5. dummy/original_cased/1.0.2/dummy_data.zip +0 -3
  6. dummy/original_lower/1.0.2/dummy_data.zip +0 -3
  7. dummy/original_lower_mix/1.0.2/dummy_data.zip +0 -3
  8. dummy/simple_cased/1.0.2/dummy_data.zip +0 -3
  9. dummy/simple_lower/1.0.2/dummy_data.zip +0 -3
  10. dummy/simple_lower_mix/1.0.2/dummy_data.zip +0 -3
  11. data/original_tags/cased.tar.gz → original_cased/test-00000-of-00001.parquet +2 -2
  12. data/original_tags/lower.tar.gz → original_cased/train-00000-of-00001.parquet +2 -2
  13. data/original_tags/lower_mix.tar.gz → original_cased/validation-00000-of-00001.parquet +2 -2
  14. data/simple_tags/cased.tar.gz → original_lower/test-00000-of-00001.parquet +2 -2
  15. original_lower/train-00000-of-00001.parquet +3 -0
  16. original_lower/validation-00000-of-00001.parquet +3 -0
  17. original_lower_mix/test-00000-of-00001.parquet +3 -0
  18. original_lower_mix/train-00000-of-00001.parquet +3 -0
  19. original_lower_mix/validation-00000-of-00001.parquet +3 -0
  20. simple_cased/test-00000-of-00001.parquet +3 -0
  21. simple_cased/train-00000-of-00001.parquet +3 -0
  22. simple_cased/validation-00000-of-00001.parquet +3 -0
  23. simple_lower/test-00000-of-00001.parquet +3 -0
  24. simple_lower/train-00000-of-00001.parquet +3 -0
  25. simple_lower/validation-00000-of-00001.parquet +3 -0
  26. simple_lower_mix/test-00000-of-00001.parquet +3 -0
  27. simple_lower_mix/train-00000-of-00001.parquet +3 -0
  28. simple_lower_mix/validation-00000-of-00001.parquet +3 -0
  29. sucx3_ner.py +0 -189
README.md CHANGED
@@ -21,6 +21,188 @@ task_ids:
21
  pretty_name: sucx3_ner
22
  tags:
23
  - structure-prediction
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  ---
25
  # Dataset Card for _SUCX 3.0 - NER_
26
 
 
21
  pretty_name: sucx3_ner
22
  tags:
23
  - structure-prediction
24
+ dataset_info:
25
+ - config_name: original_cased
26
+ features:
27
+ - name: id
28
+ dtype: string
29
+ - name: tokens
30
+ sequence: string
31
+ - name: pos_tags
32
+ sequence: string
33
+ - name: ner_tags
34
+ sequence: string
35
+ splits:
36
+ - name: train
37
+ num_bytes: 16687977
38
+ num_examples: 46026
39
+ - name: validation
40
+ num_bytes: 4154518
41
+ num_examples: 11506
42
+ - name: test
43
+ num_bytes: 5222572
44
+ num_examples: 14383
45
+ download_size: 7771028
46
+ dataset_size: 26065067
47
+ - config_name: original_lower
48
+ features:
49
+ - name: id
50
+ dtype: string
51
+ - name: tokens
52
+ sequence: string
53
+ - name: pos_tags
54
+ sequence: string
55
+ - name: ner_tags
56
+ sequence: string
57
+ splits:
58
+ - name: train
59
+ num_bytes: 16964133
60
+ num_examples: 46026
61
+ - name: validation
62
+ num_bytes: 4223554
63
+ num_examples: 11506
64
+ - name: test
65
+ num_bytes: 5308870
66
+ num_examples: 14383
67
+ download_size: 7650970
68
+ dataset_size: 26496557
69
+ - config_name: original_lower_mix
70
+ features:
71
+ - name: id
72
+ dtype: string
73
+ - name: tokens
74
+ sequence: string
75
+ - name: pos_tags
76
+ sequence: string
77
+ - name: ner_tags
78
+ sequence: string
79
+ splits:
80
+ - name: train
81
+ num_bytes: 16825029
82
+ num_examples: 46026
83
+ - name: validation
84
+ num_bytes: 4188820
85
+ num_examples: 11506
86
+ - name: test
87
+ num_bytes: 5265826
88
+ num_examples: 14383
89
+ download_size: 7812363
90
+ dataset_size: 26279675
91
+ - config_name: simple_cased
92
+ features:
93
+ - name: id
94
+ dtype: string
95
+ - name: tokens
96
+ sequence: string
97
+ - name: pos_tags
98
+ sequence: string
99
+ - name: ner_tags
100
+ sequence: string
101
+ splits:
102
+ - name: train
103
+ num_bytes: 15227214
104
+ num_examples: 43126
105
+ - name: validation
106
+ num_bytes: 3793077
107
+ num_examples: 10772
108
+ - name: test
109
+ num_bytes: 4787601
110
+ num_examples: 13504
111
+ download_size: 6380714
112
+ dataset_size: 23807892
113
+ - config_name: simple_lower
114
+ features:
115
+ - name: id
116
+ dtype: string
117
+ - name: tokens
118
+ sequence: string
119
+ - name: pos_tags
120
+ sequence: string
121
+ - name: ner_tags
122
+ sequence: string
123
+ splits:
124
+ - name: train
125
+ num_bytes: 15485970
126
+ num_examples: 43126
127
+ - name: validation
128
+ num_bytes: 3857709
129
+ num_examples: 10772
130
+ - name: test
131
+ num_bytes: 4868625
132
+ num_examples: 13504
133
+ download_size: 6268754
134
+ dataset_size: 24212304
135
+ - config_name: simple_lower_mix
136
+ features:
137
+ - name: id
138
+ dtype: string
139
+ - name: tokens
140
+ sequence: string
141
+ - name: pos_tags
142
+ sequence: string
143
+ - name: ner_tags
144
+ sequence: string
145
+ splits:
146
+ - name: train
147
+ num_bytes: 15355422
148
+ num_examples: 43126
149
+ - name: validation
150
+ num_bytes: 3825201
151
+ num_examples: 10772
152
+ - name: test
153
+ num_bytes: 4828023
154
+ num_examples: 13504
155
+ download_size: 6404997
156
+ dataset_size: 24008646
157
+ configs:
158
+ - config_name: original_cased
159
+ data_files:
160
+ - split: train
161
+ path: original_cased/train-*
162
+ - split: validation
163
+ path: original_cased/validation-*
164
+ - split: test
165
+ path: original_cased/test-*
166
+ - config_name: original_lower
167
+ data_files:
168
+ - split: train
169
+ path: original_lower/train-*
170
+ - split: validation
171
+ path: original_lower/validation-*
172
+ - split: test
173
+ path: original_lower/test-*
174
+ - config_name: original_lower_mix
175
+ data_files:
176
+ - split: train
177
+ path: original_lower_mix/train-*
178
+ - split: validation
179
+ path: original_lower_mix/validation-*
180
+ - split: test
181
+ path: original_lower_mix/test-*
182
+ - config_name: simple_cased
183
+ data_files:
184
+ - split: train
185
+ path: simple_cased/train-*
186
+ - split: validation
187
+ path: simple_cased/validation-*
188
+ - split: test
189
+ path: simple_cased/test-*
190
+ - config_name: simple_lower
191
+ data_files:
192
+ - split: train
193
+ path: simple_lower/train-*
194
+ - split: validation
195
+ path: simple_lower/validation-*
196
+ - split: test
197
+ path: simple_lower/test-*
198
+ - config_name: simple_lower_mix
199
+ data_files:
200
+ - split: train
201
+ path: simple_lower_mix/train-*
202
+ - split: validation
203
+ path: simple_lower_mix/validation-*
204
+ - split: test
205
+ path: simple_lower_mix/test-*
206
  ---
207
  # Dataset Card for _SUCX 3.0 - NER_
208
 
data/simple_tags/lower.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a52c52115e97dc288c9b17a84d364de0c9b7e3d8ee1857b3f6365eeb46c6ca1
3
- size 5094473
 
 
 
 
data/simple_tags/lower_mix.tar.gz DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0398b4a54c40342b96f804952d7b53577157938c45ac24d368871e4e8b678abe
3
- size 5152711
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"original_cased": {"description": " The dataset is a conversion of the venerable SUC 3.0 dataset into the\n huggingface ecosystem. The original dataset does not contain an official\n train-dev-test split, which is introduced here; the tag distribution for the\n NER tags between the three splits is mostly the same.\n \n The dataset has three different types of tagsets: manually annotated POS,\n manually annotated NER, and automatically annotated NER. For the\n automatically annotated NER tags, only sentences were chosen, where the\n automatic and manual annotations would match (with their respective\n categories).\n \n Additionally we provide remixes of the same data with some or all sentences\n being lowercased.\nmanually annotated & cased", "citation": "@article{gustafson2006documentation,\n title={Documentation of the Stockholm-Ume{\u0007a} Corpus},\n author={Gustafson-Capkov{'a}, Sofia and Hartmann, Britt},\n journal={Stockholm University: Department of Linguistics},\n year={2006}\n}\n", "homepage": "https://spraakbanken.gu.se/en/resources/suc3", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "suc3", "config_name": "original_cased", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 16688117, "num_examples": 46026, "dataset_name": "suc3"}, "validation": {"name": "validation", "num_bytes": 4154574, "num_examples": 11506, "dataset_name": "suc3"}, "test": {"name": "test", "num_bytes": 5222628, "num_examples": 14383, "dataset_name": "suc3"}}, "download_checksums": {"https://huggingface.co/datasets/KBLab/sucx3_ner/resolve/main/data/original_tags/cased.tar.gz": {"num_bytes": 6250353, "checksum": "d365e0e4f1b2cb7221f0810152d5b33993a3221c3973cb7cf0976bcf530f5a4f"}}, "download_size": 6250353, "post_processing_size": null, "dataset_size": 26065319, "size_in_bytes": 32315672}, "original_lower": {"description": " The dataset is a conversion of the venerable SUC 3.0 dataset into the\n huggingface ecosystem. The original dataset does not contain an official\n train-dev-test split, which is introduced here; the tag distribution for the\n NER tags between the three splits is mostly the same.\n \n The dataset has three different types of tagsets: manually annotated POS,\n manually annotated NER, and automatically annotated NER. For the\n automatically annotated NER tags, only sentences were chosen, where the\n automatic and manual annotations would match (with their respective\n categories).\n \n Additionally we provide remixes of the same data with some or all sentences\n being lowercased.\nmanually annotated & lower", "citation": "@article{gustafson2006documentation,\n title={Documentation of the Stockholm-Ume{\u0007a} Corpus},\n author={Gustafson-Capkov{'a}, Sofia and Hartmann, Britt},\n journal={Stockholm University: Department of Linguistics},\n year={2006}\n}\n", "homepage": "https://spraakbanken.gu.se/en/resources/suc3", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "suc3", "config_name": "original_lower", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 16964273, "num_examples": 46026, "dataset_name": "suc3"}, "validation": {"name": "validation", "num_bytes": 4223610, "num_examples": 11506, "dataset_name": "suc3"}, "test": {"name": "test", "num_bytes": 5308926, "num_examples": 14383, "dataset_name": "suc3"}}, "download_checksums": {"https://huggingface.co/datasets/KBLab/sucx3_ner/resolve/main/data/original_tags/lower.tar.gz": {"num_bytes": 6174754, "checksum": "5930a0d6ad762c678b8eeb208155ac9b36334627d98bcc776afa6b589b4be3b5"}}, "download_size": 6174754, "post_processing_size": null, "dataset_size": 26496809, "size_in_bytes": 32671563}, "original_lower_mix": {"description": " The dataset is a conversion of the venerable SUC 3.0 dataset into the\n huggingface ecosystem. The original dataset does not contain an official\n train-dev-test split, which is introduced here; the tag distribution for the\n NER tags between the three splits is mostly the same.\n \n The dataset has three different types of tagsets: manually annotated POS,\n manually annotated NER, and automatically annotated NER. For the\n automatically annotated NER tags, only sentences were chosen, where the\n automatic and manual annotations would match (with their respective\n categories).\n \n Additionally we provide remixes of the same data with some or all sentences\n being lowercased.\nmanually annotated & lower_mix", "citation": "@article{gustafson2006documentation,\n title={Documentation of the Stockholm-Ume{\u0007a} Corpus},\n author={Gustafson-Capkov{'a}, Sofia and Hartmann, Britt},\n journal={Stockholm University: Department of Linguistics},\n year={2006}\n}\n", "homepage": "https://spraakbanken.gu.se/en/resources/suc3", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "suc3", "config_name": "original_lower_mix", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 16825169, "num_examples": 46026, "dataset_name": "suc3"}, "validation": {"name": "validation", "num_bytes": 4188876, "num_examples": 11506, "dataset_name": "suc3"}, "test": {"name": "test", "num_bytes": 5265882, "num_examples": 14383, "dataset_name": "suc3"}}, "download_checksums": {"https://huggingface.co/datasets/KBLab/sucx3_ner/resolve/main/data/original_tags/lower_mix.tar.gz": {"num_bytes": 6241014, "checksum": "bb43b2983cf7c0c5c006c78c614c3170f2bc706998c2c3336e5c364da9573b40"}}, "download_size": 6241014, "post_processing_size": null, "dataset_size": 26279927, "size_in_bytes": 32520941}, "simple_cased": {"description": " The dataset is a conversion of the venerable SUC 3.0 dataset into the\n huggingface ecosystem. The original dataset does not contain an official\n train-dev-test split, which is introduced here; the tag distribution for the\n NER tags between the three splits is mostly the same.\n \n The dataset has three different types of tagsets: manually annotated POS,\n manually annotated NER, and automatically annotated NER. For the\n automatically annotated NER tags, only sentences were chosen, where the\n automatic and manual annotations would match (with their respective\n categories).\n \n Additionally we provide remixes of the same data with some or all sentences\n being lowercased.\nautomatically annotated & cased", "citation": "@article{gustafson2006documentation,\n title={Documentation of the Stockholm-Ume{\u0007a} Corpus},\n author={Gustafson-Capkov{'a}, Sofia and Hartmann, Britt},\n journal={Stockholm University: Department of Linguistics},\n year={2006}\n}\n", "homepage": "https://spraakbanken.gu.se/en/resources/suc3", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "suc3", "config_name": "simple_cased", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 15227354, "num_examples": 43126, "dataset_name": "suc3"}, "validation": {"name": "validation", "num_bytes": 3793133, "num_examples": 10772, "dataset_name": "suc3"}, "test": {"name": "test", "num_bytes": 4787657, "num_examples": 13504, "dataset_name": "suc3"}}, "download_checksums": {"https://huggingface.co/datasets/KBLab/sucx3_ner/resolve/main/data/simple_tags/cased.tar.gz": {"num_bytes": 5147751, "checksum": "a17962cd708ab2e9dbdc7aa950487c1e791af02b2e8e6425fcfebbaf8937ebc1"}}, "download_size": 5147751, "post_processing_size": null, "dataset_size": 23808144, "size_in_bytes": 28955895}, "simple_lower": {"description": " The dataset is a conversion of the venerable SUC 3.0 dataset into the\n huggingface ecosystem. The original dataset does not contain an official\n train-dev-test split, which is introduced here; the tag distribution for the\n NER tags between the three splits is mostly the same.\n \n The dataset has three different types of tagsets: manually annotated POS,\n manually annotated NER, and automatically annotated NER. For the\n automatically annotated NER tags, only sentences were chosen, where the\n automatic and manual annotations would match (with their respective\n categories).\n \n Additionally we provide remixes of the same data with some or all sentences\n being lowercased.\nautomatically annotated & lower", "citation": "@article{gustafson2006documentation,\n title={Documentation of the Stockholm-Ume{\u0007a} Corpus},\n author={Gustafson-Capkov{'a}, Sofia and Hartmann, Britt},\n journal={Stockholm University: Department of Linguistics},\n year={2006}\n}\n", "homepage": "https://spraakbanken.gu.se/en/resources/suc3", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "suc3", "config_name": "simple_lower", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 15486110, "num_examples": 43126, "dataset_name": "suc3"}, "validation": {"name": "validation", "num_bytes": 3857765, "num_examples": 10772, "dataset_name": "suc3"}, "test": {"name": "test", "num_bytes": 4868681, "num_examples": 13504, "dataset_name": "suc3"}}, "download_checksums": {"https://huggingface.co/datasets/KBLab/sucx3_ner/resolve/main/data/simple_tags/lower.tar.gz": {"num_bytes": 5094473, "checksum": "5a52c52115e97dc288c9b17a84d364de0c9b7e3d8ee1857b3f6365eeb46c6ca1"}}, "download_size": 5094473, "post_processing_size": null, "dataset_size": 24212556, "size_in_bytes": 29307029}, "simple_lower_mix": {"description": " The dataset is a conversion of the venerable SUC 3.0 dataset into the\n huggingface ecosystem. The original dataset does not contain an official\n train-dev-test split, which is introduced here; the tag distribution for the\n NER tags between the three splits is mostly the same.\n \n The dataset has three different types of tagsets: manually annotated POS,\n manually annotated NER, and automatically annotated NER. For the\n automatically annotated NER tags, only sentences were chosen, where the\n automatic and manual annotations would match (with their respective\n categories).\n \n Additionally we provide remixes of the same data with some or all sentences\n being lowercased.\nautimatically annotated & lower_mix", "citation": "@article{gustafson2006documentation,\n title={Documentation of the Stockholm-Ume{\u0007a} Corpus},\n author={Gustafson-Capkov{'a}, Sofia and Hartmann, Britt},\n journal={Stockholm University: Department of Linguistics},\n year={2006}\n}\n", "homepage": "https://spraakbanken.gu.se/en/resources/suc3", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "suc3", "config_name": "simple_lower_mix", "version": {"version_str": "1.0.2", "description": null, "major": 1, "minor": 0, "patch": 2}, "splits": {"train": {"name": "train", "num_bytes": 15355562, "num_examples": 43126, "dataset_name": "suc3"}, "validation": {"name": "validation", "num_bytes": 3825257, "num_examples": 10772, "dataset_name": "suc3"}, "test": {"name": "test", "num_bytes": 4828079, "num_examples": 13504, "dataset_name": "suc3"}}, "download_checksums": {"https://huggingface.co/datasets/KBLab/sucx3_ner/resolve/main/data/simple_tags/lower_mix.tar.gz": {"num_bytes": 5152711, "checksum": "0398b4a54c40342b96f804952d7b53577157938c45ac24d368871e4e8b678abe"}}, "download_size": 5152711, "post_processing_size": null, "dataset_size": 24008898, "size_in_bytes": 29161609}}
 
 
dummy/original_cased/1.0.2/dummy_data.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:523bc8872b35c03c76668f42d285197b9d84e935da0f717a015dbbefc0a3ca06
3
- size 2874
 
 
 
 
dummy/original_lower/1.0.2/dummy_data.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5f225ebf3ab262f3b3f104b30c2ff51cf1e78a403209aba61227fbd1de7d751e
3
- size 2873
 
 
 
 
dummy/original_lower_mix/1.0.2/dummy_data.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d1a2b2f7f31acb3547068c8d34255996122b3caf4bf2cff4cc674c484a4bfbd5
3
- size 2959
 
 
 
 
dummy/simple_cased/1.0.2/dummy_data.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:81b4a5e258d5fddb31c532266ab2fa7fbd2e383a4deab1d8d207d1730c5087ae
3
- size 2857
 
 
 
 
dummy/simple_lower/1.0.2/dummy_data.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:dfb1afe8abd25af528f6fc16c980f51c8810fab3ec8aa5707c7ebca9050ad3ff
3
- size 2858
 
 
 
 
dummy/simple_lower_mix/1.0.2/dummy_data.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d24ad3fafd3e66870727bb82e529772e5f3d3c8a84e7a0f415fb1a6560783d57
3
- size 2948
 
 
 
 
data/original_tags/cased.tar.gz → original_cased/test-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d365e0e4f1b2cb7221f0810152d5b33993a3221c3973cb7cf0976bcf530f5a4f
3
- size 6250353
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9ef59e4ae63f773f5576d7e0ec26b2a2570a839c6a129a64092175e4612c3c4
3
+ size 1559660
data/original_tags/lower.tar.gz → original_cased/train-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5930a0d6ad762c678b8eeb208155ac9b36334627d98bcc776afa6b589b4be3b5
3
- size 6174754
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:316712a56c80cc6122d19fc161b2c7065b17141c7a4e728a19886690b624539c
3
+ size 4968097
data/original_tags/lower_mix.tar.gz → original_cased/validation-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bb43b2983cf7c0c5c006c78c614c3170f2bc706998c2c3336e5c364da9573b40
3
- size 6241014
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3094812ac1e381c95645142f27731874dcad7233f3a6b6759330e96aff530d4a
3
+ size 1243271
data/simple_tags/cased.tar.gz → original_lower/test-00000-of-00001.parquet RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a17962cd708ab2e9dbdc7aa950487c1e791af02b2e8e6425fcfebbaf8937ebc1
3
- size 5147751
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7591fb169170a1297021fea48928f7e1dc6130373f39a66a57937e2de32ba505
3
+ size 1535530
original_lower/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bad71b523ea74d9ffac8366477e913851095cf33fd1cfdd1d25cd0f656ad094f
3
+ size 4891404
original_lower/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5632ec2fd64e6a39edd6b15ea6d89501eeb8895d0e119e538bd136ff87a3d28e
3
+ size 1224036
original_lower_mix/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c905b6a6f7a34b18e77b87b5fd6c6733f251b2acf3c12badbcf78229b0a3bce1
3
+ size 1567852
original_lower_mix/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4fcca0b140a6300b6142278c53406d78bd0a19e3194433ea5a33580e567ed4c8
3
+ size 4994381
original_lower_mix/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54fa53a9fd1e08601eee8c8afb5435e2424219f854871defa07cdee0fd900b05
3
+ size 1250130
simple_cased/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb76de44f3b47fabc027cbc1cf562c89396792aa8d26ce9a7946acef120b9b0a
3
+ size 1324777
simple_cased/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fe5fdfc9c2610e517202900e49c3f6844b38800c285a2a5878a3d7ad5c26f42
3
+ size 3994230
simple_cased/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:becfb6a0d44b9bd493e4baa7115d9854046987dc565e81cc1f83a749ff25df39
3
+ size 1061707
simple_lower/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dbe9b1c71daf2d7156b5a10a90cb08dd34a94b3199a75fa335099ff8b20331e
3
+ size 1303102
simple_lower/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7164162113524bf1f5a53de1873e8c1f3fa82b105923fa83e0d6ffb179a3ef3
3
+ size 3921599
simple_lower/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ed77bc9266d0ece113e9f59ef3dbfc1c6c3feb3e0fa5f7f16f7a145872ad667
3
+ size 1044053
simple_lower_mix/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b493e80f976f22ee7b9c0caf6a4d87a4e849b0f085a1896948bfecd89d0eba96
3
+ size 1328694
simple_lower_mix/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:59be1fc122d853386765546852379e6ffaef5fd5dd9e92948931abbde7beceaf
3
+ size 4012091
simple_lower_mix/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e5a2e233c194178a257326af037a404f3f83029b832f52f88e7b31f2e7612c7
3
+ size 1064212
sucx3_ner.py DELETED
@@ -1,189 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- # Lint as: python3
17
- """The SuperGLUE benchmark."""
18
-
19
- import json
20
- import os
21
-
22
- import datasets
23
-
24
- _CITATION = """\
25
- @article{gustafson2006documentation,
26
- title={Documentation of the Stockholm-Ume{\aa} Corpus},
27
- author={Gustafson-Capkov{\'a}, Sofia and Hartmann, Britt},
28
- journal={Stockholm University: Department of Linguistics},
29
- year={2006}
30
- }
31
- """
32
-
33
- # You can copy an official description
34
- _DESCRIPTION = """\
35
- The dataset is a conversion of the venerable SUC 3.0 dataset into the
36
- huggingface ecosystem. The original dataset does not contain an official
37
- train-dev-test split, which is introduced here; the tag distribution for the
38
- NER tags between the three splits is mostly the same.
39
-
40
- The dataset has three different types of tagsets: manually annotated POS,
41
- manually annotated NER, and automatically annotated NER. For the
42
- automatically annotated NER tags, only sentences were chosen, where the
43
- automatic and manual annotations would match (with their respective
44
- categories).
45
-
46
- Additionally we provide remixes of the same data with some or all sentences
47
- being lowercased.
48
- """
49
-
50
- _HOMEPAGE = "https://spraakbanken.gu.se/en/resources/suc3"
51
-
52
- _LICENSE = "CC-BY-4.0"
53
-
54
- # TODO: Add link to the official dataset URLs here
55
- # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
56
- # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
57
- # _URL = "https://huggingface.co/datasets/KBLab/suc3_1/resolve/main/data/"
58
- _URL = "https://huggingface.co/datasets/KBLab/sucx3_ner/resolve/main/data/"
59
- _URLS = {
60
- "original_tags": {
61
- "cased": "original_tags/cased.tar.gz",
62
- "lower": "original_tags/lower.tar.gz",
63
- "lower_mix": "original_tags/lower_mix.tar.gz"},
64
- "simple_tags": {
65
- "cased": "simple_tags/cased.tar.gz",
66
- "lower": "simple_tags/lower.tar.gz",
67
- "lower_mix": "simple_tags/lower_mix.tar.gz"}
68
- }
69
-
70
-
71
- _POS_LABEL_NAMES = {
72
- 'AB', 'DT', 'HA', 'HD', 'HP', 'HS', 'IE', 'IN', 'JJ', 'KN', 'MAD', 'MID',
73
- 'NN', 'PAD', 'PC', 'PL', 'PM', 'PN', 'PP', 'PS', 'RG', 'RO', 'SN', 'UO',
74
- 'VB'
75
- }
76
- _NER_LABEL_NAMES_ORIGINAL = {
77
- 'B-animal', 'B-event', 'B-inst', 'B-myth', 'B-other', 'B-person',
78
- 'B-place', 'B-product', 'B-work', 'I-animal', 'I-event', 'I-inst',
79
- 'I-myth', 'I-other', 'I-person', 'I-place', 'I-product', 'I-work', 'O'
80
- }
81
-
82
- _NER_LABEL_NAMES_SIMPLE = {
83
- 'B-EVN', 'B-LOC', 'B-MSR', 'B-OBJ', 'B-ORG', 'B-PRS', 'B-TME', 'B-WRK',
84
- 'I-EVN', 'I-LOC', 'I-MSR', 'I-OBJ', 'I-ORG', 'I-PRS', 'I-TME', 'I-WRK', 'O'
85
- }
86
-
87
-
88
- class SUC3Config(datasets.BuilderConfig):
89
- """BuilderConfig for Suc."""
90
- def __init__(self,
91
- ner_label_names,
92
- description,
93
- data_url,
94
- **kwargs):
95
- """BuilderConfig for Suc.
96
- """
97
- super(SUC3Config,
98
- self).__init__(version=datasets.Version("1.0.2"), **kwargs)
99
- self.ner_label_names = ner_label_names
100
- self.description = description
101
- self.data_url = data_url
102
-
103
-
104
-
105
- class SUC3(datasets.GeneratorBasedBuilder):
106
- """The SuperGLUE benchmark."""
107
-
108
- BUILDER_CONFIGS = [
109
- SUC3Config(
110
- name="original_cased",
111
- ner_label_names=_NER_LABEL_NAMES_ORIGINAL,
112
- data_url=_URLS["original_tags"]["cased"],
113
- description="manually annotated & cased",
114
- ),
115
- SUC3Config(
116
- name="original_lower",
117
- ner_label_names=_NER_LABEL_NAMES_ORIGINAL,
118
- data_url=_URLS["original_tags"]["lower"],
119
- description="manually annotated & lower",
120
- ),
121
- SUC3Config(
122
- name="original_lower_mix",
123
- ner_label_names=_NER_LABEL_NAMES_ORIGINAL,
124
- data_url=_URLS["original_tags"]["lower_mix"],
125
- description="manually annotated & lower_mix",
126
- ),
127
- SUC3Config(
128
- name="simple_cased",
129
- ner_label_names=_NER_LABEL_NAMES_SIMPLE,
130
- data_url=_URLS["simple_tags"]["cased"],
131
- description="automatically annotated & cased",
132
- ),
133
- SUC3Config(
134
- name="simple_lower",
135
- ner_label_names=_NER_LABEL_NAMES_SIMPLE,
136
- data_url=_URLS["simple_tags"]["lower"],
137
- description="automatically annotated & lower",
138
- ),
139
- SUC3Config(
140
- name="simple_lower_mix",
141
- ner_label_names=_NER_LABEL_NAMES_SIMPLE,
142
- data_url=_URLS["simple_tags"]["lower_mix"],
143
- description="autimatically annotated & lower_mix",
144
- ),
145
- ]
146
-
147
- def _info(self):
148
- features = {"id": datasets.Value("string"),
149
- "tokens": datasets.features.Sequence(datasets.Value("string")),
150
- "pos_tags": datasets.features.Sequence(datasets.Value("string")),
151
- "ner_tags": datasets.features.Sequence(datasets.Value("string"))}
152
-
153
- return datasets.DatasetInfo(
154
- description=_DESCRIPTION + self.config.description,
155
- features=datasets.Features(features),
156
- homepage=_HOMEPAGE,
157
- citation=_CITATION,
158
- supervised_keys=None,
159
- )
160
-
161
- def _split_generators(self, dl_manager):
162
- dl_dir = dl_manager.download_and_extract(_URL + self.config.data_url)
163
- dl_dir = os.path.join(dl_dir, self.config.data_url.split("/")[-1].split(".")[0])
164
- return [
165
- datasets.SplitGenerator(
166
- name=datasets.Split.TRAIN,
167
- gen_kwargs={
168
- "data_file": os.path.join(dl_dir, "train.jsonl"),
169
- },
170
- ),
171
- datasets.SplitGenerator(
172
- name=datasets.Split.VALIDATION,
173
- gen_kwargs={
174
- "data_file": os.path.join(dl_dir, "dev.jsonl"),
175
- },
176
- ),
177
- datasets.SplitGenerator(
178
- name=datasets.Split.TEST,
179
- gen_kwargs={
180
- "data_file": os.path.join(dl_dir, "test.jsonl"),
181
- },
182
- ),
183
- ]
184
-
185
- def _generate_examples(self, data_file):
186
- with open(data_file, encoding="utf-8") as f:
187
- for i, line in enumerate(f):
188
- row = json.loads(line)
189
- yield str(i), row