parquet-converter commited on
Commit
772395a
1 Parent(s): 96acc4f

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,28 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bin.* filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.model filter=lfs diff=lfs merge=lfs -text
12
- *.msgpack filter=lfs diff=lfs merge=lfs -text
13
- *.onnx filter=lfs diff=lfs merge=lfs -text
14
- *.ot filter=lfs diff=lfs merge=lfs -text
15
- *.parquet filter=lfs diff=lfs merge=lfs -text
16
- *.pb filter=lfs diff=lfs merge=lfs -text
17
- *.pt filter=lfs diff=lfs merge=lfs -text
18
- *.pth filter=lfs diff=lfs merge=lfs -text
19
- *.rar filter=lfs diff=lfs merge=lfs -text
20
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
- *.tar.* filter=lfs diff=lfs merge=lfs -text
22
- *.tflite filter=lfs diff=lfs merge=lfs -text
23
- *.tgz filter=lfs diff=lfs merge=lfs -text
24
- *.xz filter=lfs diff=lfs merge=lfs -text
25
- *.zip filter=lfs diff=lfs merge=lfs -text
26
- *.zstandard filter=lfs diff=lfs merge=lfs -text
27
- *tfevents* filter=lfs diff=lfs merge=lfs -text
28
- *.jsonl filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md DELETED
@@ -1,124 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - expert-generated
4
- language_creators:
5
- - other
6
- language:
7
- - sv
8
- license:
9
- - cc-by-4.0
10
- multilinguality:
11
- - monolingual
12
- size_categories:
13
- - unknown
14
- source_datasets:
15
- - original
16
- task_categories:
17
- - other
18
- task_ids:
19
- - named-entity-recognition
20
- - part-of-speech
21
- pretty_name: sucx3_ner
22
- tags:
23
- - structure-prediction
24
- ---
25
- # Dataset Card for _SUCX 3.0 - NER_
26
-
27
- ## Dataset Description
28
-
29
- - **Homepage:** [https://spraakbanken.gu.se/en/resources/suc3](https://spraakbanken.gu.se/en/resources/suc3)
30
- - **Repository:** [https://github.com/kb-labb/sucx3_ner](https://github.com/kb-labb/sucx3_ner)
31
- - **Paper:** [SUC 2.0 manual](http://spraakbanken.gu.se/parole/Docs/SUC2.0-manual.pdf)
32
- - **Point of Contact:**
33
-
34
- ### Dataset Summary
35
-
36
- The dataset is a conversion of the venerable SUC 3.0 dataset into the
37
- huggingface ecosystem.
38
- The original dataset does not contain an official train-dev-test split, which is
39
- introduced here; the tag distribution for the NER tags between the three splits
40
- is mostly the same.
41
-
42
- The dataset has three different types of tagsets: manually annotated POS,
43
- manually annotated NER, and automatically annotated NER.
44
- For the automatically annotated NER tags, only sentences were chosen, where the
45
- automatic and manual annotations would match (with their respective categories).
46
-
47
- Additionally we provide remixes of the same data with some or all sentences
48
- being lowercased.
49
-
50
- ### Supported Tasks and Leaderboards
51
-
52
- - Part-of-Speech tagging
53
- - Named-Entity-Recognition
54
-
55
- ### Languages
56
-
57
- Swedish
58
-
59
- ## Dataset Structure
60
-
61
- ### Data Remixes
62
-
63
- - `original_tags` contain the manual NER annotations
64
- - `lower` the whole dataset uncased
65
- - `lower_mix` some of the dataset uncased
66
- - `lower_both` every instance both cased and uncased
67
- - `simple_tags` contain the automatic NER annotations
68
- - `lower` the whole dataset uncased
69
- - `lower_mix` some of the dataset uncased
70
- - `lower_both` every instance both cased and uncased
71
-
72
- ### Data Instances
73
-
74
- For each instance, there is an `id`, with an optional `_lower` suffix to mark
75
- that it has been modified, a `tokens` list of strings containing tokens, a
76
- `pos_tags` list of strings containing POS-tags, and a `ner_tags` list of strings
77
- containing NER-tags.
78
-
79
- ```json
80
- {"id": "e24d782c-e2475603_lower",
81
- "tokens": ["-", "dels", "har", "vi", "inget", "index", "att", "g\u00e5", "efter", ",", "vi", "kr\u00e4ver", "allts\u00e5", "ers\u00e4ttning", "i", "40-talets", "penningv\u00e4rde", "."],
82
- "pos_tags": ["MID", "KN", "VB", "PN", "DT", "NN", "IE", "VB", "PP", "MID", "PN", "VB", "AB", "NN", "PP", "NN", "NN", "MAD"],
83
- "ner_tags": ["O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O", "O"]}
84
- ```
85
-
86
- ### Data Fields
87
-
88
- - `id`: a string containing the sentence-id
89
- - `tokens`: a list of strings containing the sentence's tokens
90
- - `pos_tags`: a list of strings containing the tokens' POS annotations
91
- - `ner_tags`: a list of strings containing the tokens' NER annotations
92
-
93
- ### Data Splits
94
-
95
- | Dataset Split | Size Percentage of Total Dataset Size | Number of Instances for the Original Tags |
96
- | ------------- | ------------------------------------- | ----------------------------------------- |
97
- | train | 64% | 46\,026 |
98
- | dev | 16% | 11\,506 |
99
- | test | 20% | 14\,383 |
100
-
101
- The `simple_tags` remix has fewer instances due to the requirement to match
102
- tags.
103
-
104
- ## Dataset Creation
105
-
106
- See the [original webpage](https://spraakbanken.gu.se/en/resources/suc3)
107
-
108
- ## Additional Information
109
-
110
- ### Dataset Curators
111
-
112
- [Språkbanken]([email protected])
113
-
114
- ### Licensing Information
115
-
116
- CC BY 4.0 (attribution)
117
-
118
- ### Citation Information
119
-
120
- [SUC 2.0 manual](http://spraakbanken.gu.se/parole/Docs/SUC2.0-manual.pdf)
121
-
122
- ### Contributions
123
-
124
- Thanks to [@robinqrtz](https://github.com/robinqrtz) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/lower_mix.tar.gz → original_cased/sucx3_ner-test.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:24e5f33720555fa6d17953ece113222d4e7d2f2a89ab538aa659ca7fe8e257a9
3
+ size 1573281
data/simple_tags/cased.tar.gz → original_cased/sucx3_ner-train.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:c6eb522f087b09aec9848eadfcdb9d4a186c8c31b1d06793fa8959955063c0bb
3
+ size 5010239
data/original_tags/cased.tar.gz → original_cased/sucx3_ner-validation.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:4ef24dd71a9a0dac1f635b61bde49f929379827aa1958a94421234944a4e5cc3
3
+ size 1253877
data/original_tags/lower.tar.gz → original_lower/sucx3_ner-test.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:7ecf5a75f71fd10671c0da1b46c6f7a7da0ff2a3413dc9c5c41bc877b98816a6
3
+ size 1548853
original_lower/sucx3_ner-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a43bafd1adc4d161229aa708b82ba0c5d92f3f8ca291d97e87d4c5e2d0b37ec9
3
+ size 4933807
original_lower/sucx3_ner-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ea96f7fbfbcb53882771ad0395ed66813b56be69f69b50a632c8bad62942e91
3
+ size 1234513
original_lower_mix/sucx3_ner-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e192d0e9a76ea5047dd68ed5afaaf6e5da7e489be243206594c4a2c29d4a93d
3
+ size 1581140
original_lower_mix/sucx3_ner-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39c301fe00a51b6acc921911aac12a4419353493fbcad2ebf5b58829b1658fee
3
+ size 5036758
original_lower_mix/sucx3_ner-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:413fa1f0bdbfb296fcbbb1eec979be71619f17479b6a2955e2e831885dc385d5
3
+ size 1260683
simple_cased/sucx3_ner-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f22c8b417f64d6b4460a23a7bf3377f85ef2d9cbe60b67c553183bdf9d5267a5
3
+ size 1334594
simple_cased/sucx3_ner-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bafb5a4ebd7e86989b009d6bd1a8579296947d450c6fab84f836a49efacc37c5
3
+ size 4022321
simple_cased/sucx3_ner-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcf0dcc5e0d3d8815e1d0d959cd455d4701bb9f1f66dd18a2e0120e4a0af181a
3
+ size 1069454
simple_lower/sucx3_ner-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05a49854ad32cbd6285088861ebe9322bb9911476e92555c8b42807e88d9384d
3
+ size 1313179
simple_lower/sucx3_ner-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea50a29327207838eb9790c1cee62c57a5215d1faaa160de1425a63b848c635a
3
+ size 3950275
simple_lower/sucx3_ner-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fee9ed2c3adae8d8b6fd72242980444985dd51a4f1406130ce387ad5683c464
3
+ size 1051880
simple_lower_mix/sucx3_ner-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c81045787a14a244e0a4c3271546e43e65ebb69cc7f52e655eff1a61b56e1644
3
+ size 1338597
simple_lower_mix/sucx3_ner-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e7687cf941e420beb8588d0684aa7c42ab1b5acc6476e0a6f1d8a4fe449ffc7
3
+ size 4040863
simple_lower_mix/sucx3_ner-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8982a06f20e27c8fb45fa9e4f4fc85b3662ab079f5408560bf969e2c1952de39
3
+ size 1072075
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