system HF staff commited on
Commit
662932e
0 Parent(s):

Update files from the datasets library (from 1.6.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.6.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
README.md ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - crowdsourced
6
+ languages:
7
+ - no
8
+ licenses:
9
+ - other-national-library-of-norway
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 10K<n<100K
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - structure-prediction
18
+ task_ids:
19
+ - named-entity-recognition
20
+ ---
21
+
22
+ # Dataset Card for NorNE: Norwegian Named Entities
23
+
24
+ ## Table of Contents
25
+
26
+ - [Dataset Description](#dataset-description)
27
+ - [Dataset Summary](#dataset-summary)
28
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
29
+ - [Languages](#languages)
30
+ - [Dataset Structure](#dataset-structure)
31
+ - [Data Instances](#data-instances)
32
+ - [Data Fields](#data-instances)
33
+ - [Data Splits](#data-instances)
34
+ - [Dataset Creation](#dataset-creation)
35
+ - [Curation Rationale](#curation-rationale)
36
+ - [Source Data](#source-data)
37
+ - [Annotations](#annotations)
38
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
39
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
40
+ - [Social Impact of Dataset](#social-impact-of-dataset)
41
+ - [Discussion of Biases](#discussion-of-biases)
42
+ - [Other Known Limitations](#other-known-limitations)
43
+ - [Additional Information](#additional-information)
44
+ - [Dataset Curators](#dataset-curators)
45
+ - [Licensing Information](#licensing-information)
46
+ - [Citation Information](#citation-information)
47
+ - [Contributions](#contributions)
48
+
49
+ ## Dataset Description
50
+
51
+ - **Homepage:** [NorNE](https://github.com/ltgoslo/norne/)
52
+ - **Repository:** [Github](https://github.com/ltgoslo/norne/)
53
+ - **Paper:** https://arxiv.org/abs/1911.12146
54
+ - **Leaderboard:**
55
+ - **Point of Contact:**
56
+
57
+ ### Dataset Summary
58
+
59
+ NorNE is a manually annotated corpus of named entities which extends the annotation of the existing Norwegian Dependency Treebank. Comprising both of the official standards of written Norwegian (Bokmål and Nynorsk), the corpus contains around 600,000 tokens and annotates a rich set of entity types including persons,organizations, locations, geo-political entities, products, and events, in addition to a class corresponding to nominals derived from names.
60
+
61
+ There are 3 main configs in this dataset each with 3 versions of the NER tag set. When accessing the `bokmaal`, `nynorsk`, or `combined` configs the NER tag set will be comprised of 9 tags: `GPE_ORG`, `GPE_LOC`, `ORG`, `LOC`, `PER`, `PROD`, `EVT`, `DRV`, and `MISC`. The two special types `GPE_LOC` and `GPE_ORG` can easily be altered depending on the task, choosing either the more general `GPE` tag or the more specific `LOC`/`ORG` tags, conflating them with the other annotations of the same type. To access these reduced versions of the dataset, you can use the configs `bokmaal-7`, `nynorsk-7`, `combined-7` for the NER tag set with 7 tags ( **`ORG`**, **`LOC`**, `PER`, `PROD`, `EVT`, `DRV`, `MISC`), and `bokmaal-8`, `nynorsk-8`, `combined-8` for the NER tag set with 8 tags (`LOC_` and `ORG_`: **`ORG`**, **`LOC`**, **`GPE`**, `PER`, `PROD`, `EVT`, `DRV`, `MISC`). By default, the full set (9 tags) will be used. See Annotations for further details.
62
+
63
+ ### Supported Tasks and Leaderboards
64
+
65
+ NorNE ads named entity annotations on top of the Norwegian Dependency Treebank.
66
+
67
+ ### Languages
68
+
69
+ Both Norwegian Bokmål (`bokmaal`) and Nynorsk (`nynorsk`) are supported as different configs in this dataset. An extra config for the combined languages is also included (`combined`). See the Annotation section for details on accessing reduced tag sets for the NER feature.
70
+
71
+ ## Dataset Structure
72
+
73
+ Each entry contains text sentences, their language, identifiers, tokens, lemmas, and corresponding NER and POS tag lists.
74
+
75
+ ### Data Instances
76
+
77
+ An example of the `train` split of the `bokmaal` config.
78
+
79
+ ```python
80
+ {'idx': '000001',
81
+ 'lang': 'bokmaal',
82
+ 'lemmas': ['lam', 'og', 'piggvar', 'på', 'bryllupsmeny'],
83
+ 'ner_tags': [0, 0, 0, 0, 0],
84
+ 'pos_tags': [0, 9, 0, 5, 0],
85
+ 'text': 'Lam og piggvar på bryllupsmenyen',
86
+ 'tokens': ['Lam', 'og', 'piggvar', 'på', 'bryllupsmenyen']}
87
+ ```
88
+
89
+ ### Data Fields
90
+
91
+ Each entry is annotated with the next fields:
92
+
93
+ - `idx` (`int`), text (sentence) identifier from the NorNE dataset
94
+ - `lang` (`str`), language variety, either `bokmaal`, `nynorsk` or `combined`
95
+ - `text` (`str`), plain text
96
+ - `tokens` (`List[str]`), list of tokens extracted from `text`
97
+ - `lemmas` (`List[str]`), list of lemmas extracted from `tokens`
98
+ - `ner_tags` (`List[int]`), list of numeric NER tags for each token in `tokens`
99
+ - `pos_tags` (`List[int]`), list of numeric PoS tags for each token in `tokens`
100
+
101
+ An example DataFrame obtained from the dataset:
102
+
103
+ <table class="dataframe" border="1">
104
+ <thead>
105
+ <tr style="text-align: right;">
106
+ <th></th>
107
+ <th>idx</th>
108
+ <th>lang</th>
109
+ <th>text</th>
110
+ <th>tokens</th>
111
+ <th>lemmas</th>
112
+ <th>ner_tags</th>
113
+ <th>pos_tags</th>
114
+ </tr>
115
+ </thead>
116
+ <tbody>
117
+ <tr>
118
+ <th>0</th>
119
+ <td>000001</td>
120
+ <td>bokmaal</td>
121
+ <td>Lam og piggvar på bryllupsmenyen</td>
122
+ <td>[Lam, og, piggvar, på, bryllupsmenyen]</td>
123
+ <td>[lam, og, piggvar, på, bryllupsmeny]</td>
124
+ <td>[0, 0, 0, 0, 0]</td>
125
+ <td>[0, 9, 0, 5, 0]</td>
126
+ </tr>
127
+ <tr>
128
+ <th>1</th>
129
+ <td>000002</td>
130
+ <td>bokmaal</td>
131
+ <td>Kamskjell, piggvar og lammefilet sto på menyen...</td>
132
+ <td>[Kamskjell, ,, piggvar, og, lammefilet, sto, p...</td>
133
+ <td>[kamskjell, $,, piggvar, og, lammefilet, stå, ...</td>
134
+ <td>[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]</td>
135
+ <td>[0, 1, 0, 9, 0, 15, 2, 0, 2, 8, 6, 0, 1]</td>
136
+ </tr>
137
+ <tr>
138
+ <th>2</th>
139
+ <td>000003</td>
140
+ <td>bokmaal</td>
141
+ <td>Og til dessert: Parfait à la Mette-Marit.</td>
142
+ <td>[Og, til, dessert, :, Parfait, à, la, Mette-Ma...</td>
143
+ <td>[og, til, dessert, $:, Parfait, à, la, Mette-M...</td>
144
+ <td>[0, 0, 0, 0, 7, 8, 8, 8, 0]</td>
145
+ <td>[9, 2, 0, 1, 10, 12, 12, 10, 1]</td>
146
+ </tr>
147
+ </tbody>
148
+ </table>
149
+
150
+ ### Data Splits
151
+
152
+ There are three splits: `train`, `validation` and `test`.
153
+
154
+ | Config | Split | Total |
155
+ | :---------|-------------:|-------:|
156
+ | `bokmaal` | `train` | 15696 |
157
+ | `bokmaal` | `validation` | 2410 |
158
+ | `bokmaal` | `test` | 1939 |
159
+ | `nynorsk` | `train` | 14174 |
160
+ | `nynorsk` | `validation` | 1890 |
161
+ | `nynorsk` | `test` | 1511 |
162
+ | `combined`| `test` | 29870 |
163
+ | `combined`| `validation` | 4300 |
164
+ | `combined`| `test` | 3450 |
165
+
166
+ ## Dataset Creation
167
+
168
+ ### Curation Rationale
169
+
170
+ 1. A _name_ in this context is close to [Saul Kripke's definition of a name](https://en.wikipedia.org/wiki/Saul_Kripke#Naming_and_Necessity),
171
+ in that a name has a unique reference and its meaning is constant (there are exceptions in the annotations, e.g. "Regjeringen" (en. "Government")).
172
+ 2. It is the usage of a name that determines the entity type, not the default/literal sense of the name,
173
+ 3. If there is an ambiguity in the type/sense of a name, then the the default/literal sense of the name is chosen
174
+ (following [Markert and Nissim, 2002](http://www.lrec-conf.org/proceedings/lrec2002/pdf/11.pdf)).
175
+
176
+ For more details, see the "Annotation Guidelines.pdf" distributed with the corpus.
177
+
178
+ ### Source Data
179
+
180
+ Data was collected using blogs and newspapers in Norwegian, as well as parliament speeches and governamental reports.
181
+
182
+ #### Initial Data Collection and Normalization
183
+
184
+ The texts in the Norwegian Dependency Treebank (NDT) are manually annotated with morphological features, syntactic functions
185
+ and hierarchical structure. The formalism used for the syntactic annotation is dependency grammar.
186
+
187
+ The treebanks consists of two parts, one part in Norwegian Bokmål (`nob`) and one part in Norwegian Nynorsk (`nno`).
188
+ Both parts contain around 300.000 tokens, and are a mix of different non-fictional genres.
189
+
190
+ See the [NDT webpage](https://www.nb.no/sprakbanken/show?serial=sbr-10) for more details.
191
+
192
+ ### Annotations
193
+
194
+ The following types of entities are annotated:
195
+
196
+ - **Person (`PER`):** Real or fictional characters and animals
197
+ - **Organization (`ORG`):** Any collection of people, such as firms, institutions, organizations, music groups,
198
+ sports teams, unions, political parties etc.
199
+ - **Location (`LOC`):** Geographical places, buildings and facilities
200
+ - **Geo-political entity (`GPE`):** Geographical regions defined by political and/or social groups.
201
+ A GPE entity subsumes and does not distinguish between a nation, its region, its government, or its people
202
+ - **Product (`PROD`):** Artificially produced entities are regarded products. This may include more abstract entities, such as speeches,
203
+ radio shows, programming languages, contracts, laws and ideas.
204
+ - **Event (`EVT`):** Festivals, cultural events, sports events, weather phenomena, wars, etc. Events are bounded in time and space.
205
+ - **Derived (`DRV`):** Words (and phrases?) that are dervied from a name, but not a name in themselves. They typically contain a full name and are capitalized, but are not proper nouns. Examples (fictive) are "Brann-treneren" ("the Brann coach") or "Oslo-mannen" ("the man from Oslo").
206
+ - **Miscellaneous (`MISC`):** Names that do not belong in the other categories. Examples are animals species and names of medical conditions. Entities that are manufactured or produced are of type Products, whereas thing naturally or spontaneously occurring are of type Miscellaneous.
207
+
208
+ Furthermore, all `GPE` entities are additionally sub-categorized as being either `ORG` or `LOC`, with the two annotation levels separated by an underscore:
209
+
210
+ - `GPE_LOC`: Geo-political entity, with a locative sense (e.g. "John lives in _Spain_")
211
+ - `GPE_ORG`: Geo-political entity, with an organisation sense (e.g. "_Spain_ declined to meet with Belgium")
212
+
213
+ The two special types `GPE_LOC` and `GPE_ORG` can easily be altered depending on the task, choosing either the more general `GPE` tag or the more specific `LOC`/`ORG` tags, conflating them with the other annotations of the same type. This means that the following sets of entity types can be derived:
214
+
215
+ - 7 types, deleting `_GPE`: **`ORG`**, **`LOC`**, `PER`, `PROD`, `EVT`, `DRV`, `MISC`
216
+ - 8 types, deleting `LOC_` and `ORG_`: **`ORG`**, **`LOC`**, **`GPE`**, `PER`, `PROD`, `EVT`, `DRV`, `MISC`
217
+ - 9 types, keeping all types: **`ORG`**, **`LOC`**, **`GPE_LOC`**, **`GPE_ORG`**, `PER`, `PROD`, `EVT`, `DRV`, `MISC`
218
+
219
+ The class distribution is as follows, broken down across the data splits of the UD version of NDT, and sorted by total counts (i.e. the number of examples, not tokens within the spans of the annotatons):
220
+
221
+ | Type | Train | Dev | Test | Total |
222
+ | :--------|-------:|-------:|-------:|-------:|
223
+ | `PER` | 4033 | 607 | 560 | 5200 |
224
+ | `ORG` | 2828 | 400 | 283 | 3511 |
225
+ | `GPE_LOC`| 2132 | 258 | 257 | 2647 |
226
+ | `PROD` | 671 | 162 | 71 | 904 |
227
+ | `LOC` | 613 | 109 | 103 | 825 |
228
+ | `GPE_ORG`| 388 | 55 | 50 | 493 |
229
+ | `DRV` | 519 | 77 | 48 | 644 |
230
+ | `EVT` | 131 | 9 | 5 | 145 |
231
+ | `MISC` | 8 | 0 | 0 | 0 |
232
+
233
+ To access these reduced versions of the dataset, you can use the configs `bokmaal-7`, `nynorsk-7`, `combined-7` for the NER tag set with 7 tags ( **`ORG`**, **`LOC`**, `PER`, `PROD`, `EVT`, `DRV`, `MISC`), and `bokmaal-8`, `nynorsk-8`, `combined-8` for the NER tag set with 8 tags (`LOC_` and `ORG_`: **`ORG`**, **`LOC`**, **`GPE`**, `PER`, `PROD`, `EVT`, `DRV`, `MISC`). By default, the full set (9 tags) will be used.
234
+
235
+ ## Additional Information
236
+
237
+ ### Dataset Curators
238
+
239
+ NorNE was created as a collaboration between [Schibsted Media Group](https://schibsted.com/), [Språkbanken](https://www.nb.no/forskning/sprakbanken/) at the [National Library of Norway](https://www.nb.no) and the [Language Technology Group](https://www.mn.uio.no/ifi/english/research/groups/ltg/) at the University of Oslo.
240
+
241
+ NorNE was added to Huggingface Datasets by the AI-Lab at the National Library of Norway.
242
+
243
+ ### Licensing Information
244
+
245
+ The NorNE corpus is published under the same [license](https://github.com/ltgoslo/norne/blob/master/LICENSE_NDT.txt) as the Norwegian Dependency Treebank
246
+
247
+ ### Citation Information
248
+
249
+ This dataset is described in the paper _NorNE: Annotating Named Entities for Norwegian_ by
250
+ Fredrik Jørgensen, Tobias Aasmoe, Anne-Stine Ruud Husevåg, Lilja Øvrelid, and Erik Velldal, accepted for LREC 2020 and available as pre-print here: https://arxiv.org/abs/1911.12146.
251
+
252
+ ```bibtex
253
+ @inproceedings{johansen2019ner,
254
+ title={NorNE: Annotating Named Entities for Norwegian},
255
+ author={Fredrik Jørgensen, Tobias Aasmoe, Anne-Stine Ruud Husevåg,
256
+ Lilja Øvrelid, and Erik Velldal},
257
+ booktitle={LREC 2020},
258
+ year={2020},
259
+ url={https://arxiv.org/abs/1911.12146}
260
+ }
261
+ ```
262
+
263
+ ### Contributions
264
+
265
+ Thanks to [@versae](https://github.com/versae) for adding this dataset.
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bokmaal": {"description": "NorNE is a manually annotated\ncorpus of named entities which extends the annotation of the existing\nNorwegian Dependency Treebank. Comprising both of the official standards of\nwritten Norwegian (Bokm\u00e5l and Nynorsk), the corpus contains around 600,000\ntokens and annotates a rich set of entity types including persons,\norganizations, locations, geo-political entities, products, and events,\nin addition to a class corresponding to nominals derived from names.\n", "citation": "@inproceedings{johansen2019ner,\n title={NorNE: Annotating Named Entities for Norwegian},\n author={Fredrik J\u00f8rgensen, Tobias Aasmoe, Anne-Stine Ruud Husev\u00e5g,\n Lilja \u00d8vrelid, and Erik Velldal},\n booktitle={LREC 2020},\n year={2020},\n url={https://arxiv.org/abs/1911.12146}\n}\n", "homepage": "https://github.com/ltgoslo/norne", "license": "", "features": {"idx": {"dtype": "string", "id": null, "_type": "Value"}, "lang": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lemmas": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 17, "names": ["NOUN", "PUNCT", "ADP", "NUM", "SYM", "SCONJ", "ADJ", "PART", "DET", "CCONJ", "PROPN", "PRON", "X", "ADV", "INTJ", "VERB", "AUX"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 19, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-GPE_LOC", "I-GPE_LOC", "B-PROD", "I-PROD", "B-LOC", "I-LOC", "B-GPE_ORG", "I-GPE_ORG", "B-DRV", "I-DRV", "B-EVT", "I-EVT", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "norne", "config_name": "bokmaal", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 10032169, "num_examples": 15696, "dataset_name": "norne"}, "validation": {"name": "validation", "num_bytes": 1501730, "num_examples": 2410, "dataset_name": "norne"}, "test": {"name": "test", "num_bytes": 1234272, "num_examples": 1939, "dataset_name": "norne"}}, "download_checksums": {"https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-train.conllu": {"num_bytes": 16437262, "checksum": "b17efd70034071f65ba5e3a15bc15f9a597f4c1dd3febb2ffec964906a9c1a98"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-dev.conllu": {"num_bytes": 2453504, "checksum": "dba752ca6dc0c628f7cf12e9131b2627be0dff082bd96311bafce40590c46f9c"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-test.conllu": {"num_bytes": 2018475, "checksum": "ace6fa65758541333e6a64210fa8466145e024cbbab18a156e8757c8b21c103b"}}, "download_size": 20909241, "post_processing_size": null, "dataset_size": 12768171, "size_in_bytes": 33677412}, "nynorsk": {"description": "NorNE is a manually annotated\ncorpus of named entities which extends the annotation of the existing\nNorwegian Dependency Treebank. Comprising both of the official standards of\nwritten Norwegian (Bokm\u00e5l and Nynorsk), the corpus contains around 600,000\ntokens and annotates a rich set of entity types including persons,\norganizations, locations, geo-political entities, products, and events,\nin addition to a class corresponding to nominals derived from names.\n", "citation": "@inproceedings{johansen2019ner,\n title={NorNE: Annotating Named Entities for Norwegian},\n author={Fredrik J\u00f8rgensen, Tobias Aasmoe, Anne-Stine Ruud Husev\u00e5g,\n Lilja \u00d8vrelid, and Erik Velldal},\n booktitle={LREC 2020},\n year={2020},\n url={https://arxiv.org/abs/1911.12146}\n}\n", "homepage": "https://github.com/ltgoslo/norne", "license": "", "features": {"idx": {"dtype": "string", "id": null, "_type": "Value"}, "lang": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lemmas": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 17, "names": ["NOUN", "PUNCT", "ADP", "NUM", "SYM", "SCONJ", "ADJ", "PART", "DET", "CCONJ", "PROPN", "PRON", "X", "ADV", "INTJ", "VERB", "AUX"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 19, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-GPE_LOC", "I-GPE_LOC", "B-PROD", "I-PROD", "B-LOC", "I-LOC", "B-GPE_ORG", "I-GPE_ORG", "B-DRV", "I-DRV", "B-EVT", "I-EVT", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "norne", "config_name": "nynorsk", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 10072260, "num_examples": 14174, "dataset_name": "norne"}, "validation": {"name": "validation", "num_bytes": 1278029, "num_examples": 1890, "dataset_name": "norne"}, "test": {"name": "test", "num_bytes": 1023358, "num_examples": 1511, "dataset_name": "norne"}}, "download_checksums": {"https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-train.conllu": {"num_bytes": 16444176, "checksum": "589564c68ab0763c2574ad90ea8928f029144c966e4af064e59a0865c53c5ef2"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-dev.conllu": {"num_bytes": 2096713, "checksum": "6519a00c0ddc4f8ef2605d7c5326adcafb2dfa2df439e281c95e1a0ef218b928"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-test.conllu": {"num_bytes": 1668364, "checksum": "6b99cafd7019ed6d1eea1b51a0707df89cad597fe588b5987b9f278ffd87588c"}}, "download_size": 20209253, "post_processing_size": null, "dataset_size": 12373647, "size_in_bytes": 32582900}, "combined": {"description": "NorNE is a manually annotated\ncorpus of named entities which extends the annotation of the existing\nNorwegian Dependency Treebank. Comprising both of the official standards of\nwritten Norwegian (Bokm\u00e5l and Nynorsk), the corpus contains around 600,000\ntokens and annotates a rich set of entity types including persons,\norganizations, locations, geo-political entities, products, and events,\nin addition to a class corresponding to nominals derived from names.\n", "citation": "@inproceedings{johansen2019ner,\n title={NorNE: Annotating Named Entities for Norwegian},\n author={Fredrik J\u00f8rgensen, Tobias Aasmoe, Anne-Stine Ruud Husev\u00e5g,\n Lilja \u00d8vrelid, and Erik Velldal},\n booktitle={LREC 2020},\n year={2020},\n url={https://arxiv.org/abs/1911.12146}\n}\n", "homepage": "https://github.com/ltgoslo/norne", "license": "", "features": {"idx": {"dtype": "string", "id": null, "_type": "Value"}, "lang": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lemmas": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 17, "names": ["NOUN", "PUNCT", "ADP", "NUM", "SYM", "SCONJ", "ADJ", "PART", "DET", "CCONJ", "PROPN", "PRON", "X", "ADV", "INTJ", "VERB", "AUX"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 19, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-GPE_LOC", "I-GPE_LOC", "B-PROD", "I-PROD", "B-LOC", "I-LOC", "B-GPE_ORG", "I-GPE_ORG", "B-DRV", "I-DRV", "B-EVT", "I-EVT", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "norne", "config_name": "combined", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 20104393, "num_examples": 29870, "dataset_name": "norne"}, "validation": {"name": "validation", "num_bytes": 2779723, "num_examples": 4300, "dataset_name": "norne"}, "test": {"name": "test", "num_bytes": 2257594, "num_examples": 3450, "dataset_name": "norne"}}, "download_checksums": {"https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-train.conllu": {"num_bytes": 16437262, "checksum": "b17efd70034071f65ba5e3a15bc15f9a597f4c1dd3febb2ffec964906a9c1a98"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-dev.conllu": {"num_bytes": 2453504, "checksum": "dba752ca6dc0c628f7cf12e9131b2627be0dff082bd96311bafce40590c46f9c"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-test.conllu": {"num_bytes": 2018475, "checksum": "ace6fa65758541333e6a64210fa8466145e024cbbab18a156e8757c8b21c103b"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-train.conllu": {"num_bytes": 16444176, "checksum": "589564c68ab0763c2574ad90ea8928f029144c966e4af064e59a0865c53c5ef2"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-dev.conllu": {"num_bytes": 2096713, "checksum": "6519a00c0ddc4f8ef2605d7c5326adcafb2dfa2df439e281c95e1a0ef218b928"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-test.conllu": {"num_bytes": 1668364, "checksum": "6b99cafd7019ed6d1eea1b51a0707df89cad597fe588b5987b9f278ffd87588c"}}, "download_size": 41118494, "post_processing_size": null, "dataset_size": 25141710, "size_in_bytes": 66260204}, "bokmaal-7": {"description": "NorNE is a manually annotated\ncorpus of named entities which extends the annotation of the existing\nNorwegian Dependency Treebank. Comprising both of the official standards of\nwritten Norwegian (Bokm\u00e5l and Nynorsk), the corpus contains around 600,000\ntokens and annotates a rich set of entity types including persons,\norganizations, locations, geo-political entities, products, and events,\nin addition to a class corresponding to nominals derived from names.\n", "citation": "@inproceedings{johansen2019ner,\n title={NorNE: Annotating Named Entities for Norwegian},\n author={Fredrik J\u00f8rgensen, Tobias Aasmoe, Anne-Stine Ruud Husev\u00e5g,\n Lilja \u00d8vrelid, and Erik Velldal},\n booktitle={LREC 2020},\n year={2020},\n url={https://arxiv.org/abs/1911.12146}\n}\n", "homepage": "https://github.com/ltgoslo/norne", "license": "", "features": {"idx": {"dtype": "string", "id": null, "_type": "Value"}, "lang": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lemmas": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 17, "names": ["NOUN", "PUNCT", "ADP", "NUM", "SYM", "SCONJ", "ADJ", "PART", "DET", "CCONJ", "PROPN", "PRON", "X", "ADV", "INTJ", "VERB", "AUX"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 15, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-PROD", "I-PROD", "B-LOC", "I-LOC", "B-DRV", "I-DRV", "B-EVT", "I-EVT", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "norne", "config_name": "bokmaal-7", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 10032169, "num_examples": 15696, "dataset_name": "norne"}, "validation": {"name": "validation", "num_bytes": 1501730, "num_examples": 2410, "dataset_name": "norne"}, "test": {"name": "test", "num_bytes": 1234272, "num_examples": 1939, "dataset_name": "norne"}}, "download_checksums": {"https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-train.conllu": {"num_bytes": 16437262, "checksum": "b17efd70034071f65ba5e3a15bc15f9a597f4c1dd3febb2ffec964906a9c1a98"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-dev.conllu": {"num_bytes": 2453504, "checksum": "dba752ca6dc0c628f7cf12e9131b2627be0dff082bd96311bafce40590c46f9c"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-test.conllu": {"num_bytes": 2018475, "checksum": "ace6fa65758541333e6a64210fa8466145e024cbbab18a156e8757c8b21c103b"}}, "download_size": 20909241, "post_processing_size": null, "dataset_size": 12768171, "size_in_bytes": 33677412}, "nynorsk-7": {"description": "NorNE is a manually annotated\ncorpus of named entities which extends the annotation of the existing\nNorwegian Dependency Treebank. Comprising both of the official standards of\nwritten Norwegian (Bokm\u00e5l and Nynorsk), the corpus contains around 600,000\ntokens and annotates a rich set of entity types including persons,\norganizations, locations, geo-political entities, products, and events,\nin addition to a class corresponding to nominals derived from names.\n", "citation": "@inproceedings{johansen2019ner,\n title={NorNE: Annotating Named Entities for Norwegian},\n author={Fredrik J\u00f8rgensen, Tobias Aasmoe, Anne-Stine Ruud Husev\u00e5g,\n Lilja \u00d8vrelid, and Erik Velldal},\n booktitle={LREC 2020},\n year={2020},\n url={https://arxiv.org/abs/1911.12146}\n}\n", "homepage": "https://github.com/ltgoslo/norne", "license": "", "features": {"idx": {"dtype": "string", "id": null, "_type": "Value"}, "lang": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lemmas": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 17, "names": ["NOUN", "PUNCT", "ADP", "NUM", "SYM", "SCONJ", "ADJ", "PART", "DET", "CCONJ", "PROPN", "PRON", "X", "ADV", "INTJ", "VERB", "AUX"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 15, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-PROD", "I-PROD", "B-LOC", "I-LOC", "B-DRV", "I-DRV", "B-EVT", "I-EVT", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "norne", "config_name": "nynorsk-7", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 10072260, "num_examples": 14174, "dataset_name": "norne"}, "validation": {"name": "validation", "num_bytes": 1278029, "num_examples": 1890, "dataset_name": "norne"}, "test": {"name": "test", "num_bytes": 1023358, "num_examples": 1511, "dataset_name": "norne"}}, "download_checksums": {"https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-train.conllu": {"num_bytes": 16444176, "checksum": "589564c68ab0763c2574ad90ea8928f029144c966e4af064e59a0865c53c5ef2"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-dev.conllu": {"num_bytes": 2096713, "checksum": "6519a00c0ddc4f8ef2605d7c5326adcafb2dfa2df439e281c95e1a0ef218b928"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-test.conllu": {"num_bytes": 1668364, "checksum": "6b99cafd7019ed6d1eea1b51a0707df89cad597fe588b5987b9f278ffd87588c"}}, "download_size": 20209253, "post_processing_size": null, "dataset_size": 12373647, "size_in_bytes": 32582900}, "combined-7": {"description": "NorNE is a manually annotated\ncorpus of named entities which extends the annotation of the existing\nNorwegian Dependency Treebank. Comprising both of the official standards of\nwritten Norwegian (Bokm\u00e5l and Nynorsk), the corpus contains around 600,000\ntokens and annotates a rich set of entity types including persons,\norganizations, locations, geo-political entities, products, and events,\nin addition to a class corresponding to nominals derived from names.\n", "citation": "@inproceedings{johansen2019ner,\n title={NorNE: Annotating Named Entities for Norwegian},\n author={Fredrik J\u00f8rgensen, Tobias Aasmoe, Anne-Stine Ruud Husev\u00e5g,\n Lilja \u00d8vrelid, and Erik Velldal},\n booktitle={LREC 2020},\n year={2020},\n url={https://arxiv.org/abs/1911.12146}\n}\n", "homepage": "https://github.com/ltgoslo/norne", "license": "", "features": {"idx": {"dtype": "string", "id": null, "_type": "Value"}, "lang": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lemmas": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 17, "names": ["NOUN", "PUNCT", "ADP", "NUM", "SYM", "SCONJ", "ADJ", "PART", "DET", "CCONJ", "PROPN", "PRON", "X", "ADV", "INTJ", "VERB", "AUX"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 15, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-PROD", "I-PROD", "B-LOC", "I-LOC", "B-DRV", "I-DRV", "B-EVT", "I-EVT", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "norne", "config_name": "combined-7", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 20104393, "num_examples": 29870, "dataset_name": "norne"}, "validation": {"name": "validation", "num_bytes": 2779723, "num_examples": 4300, "dataset_name": "norne"}, "test": {"name": "test", "num_bytes": 2257594, "num_examples": 3450, "dataset_name": "norne"}}, "download_checksums": {"https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-train.conllu": {"num_bytes": 16437262, "checksum": "b17efd70034071f65ba5e3a15bc15f9a597f4c1dd3febb2ffec964906a9c1a98"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-dev.conllu": {"num_bytes": 2453504, "checksum": "dba752ca6dc0c628f7cf12e9131b2627be0dff082bd96311bafce40590c46f9c"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-test.conllu": {"num_bytes": 2018475, "checksum": "ace6fa65758541333e6a64210fa8466145e024cbbab18a156e8757c8b21c103b"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-train.conllu": {"num_bytes": 16444176, "checksum": "589564c68ab0763c2574ad90ea8928f029144c966e4af064e59a0865c53c5ef2"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-dev.conllu": {"num_bytes": 2096713, "checksum": "6519a00c0ddc4f8ef2605d7c5326adcafb2dfa2df439e281c95e1a0ef218b928"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-test.conllu": {"num_bytes": 1668364, "checksum": "6b99cafd7019ed6d1eea1b51a0707df89cad597fe588b5987b9f278ffd87588c"}}, "download_size": 41118494, "post_processing_size": null, "dataset_size": 25141710, "size_in_bytes": 66260204}, "bokmaal-8": {"description": "NorNE is a manually annotated\ncorpus of named entities which extends the annotation of the existing\nNorwegian Dependency Treebank. Comprising both of the official standards of\nwritten Norwegian (Bokm\u00e5l and Nynorsk), the corpus contains around 600,000\ntokens and annotates a rich set of entity types including persons,\norganizations, locations, geo-political entities, products, and events,\nin addition to a class corresponding to nominals derived from names.\n", "citation": "@inproceedings{johansen2019ner,\n title={NorNE: Annotating Named Entities for Norwegian},\n author={Fredrik J\u00f8rgensen, Tobias Aasmoe, Anne-Stine Ruud Husev\u00e5g,\n Lilja \u00d8vrelid, and Erik Velldal},\n booktitle={LREC 2020},\n year={2020},\n url={https://arxiv.org/abs/1911.12146}\n}\n", "homepage": "https://github.com/ltgoslo/norne", "license": "", "features": {"idx": {"dtype": "string", "id": null, "_type": "Value"}, "lang": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lemmas": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 17, "names": ["NOUN", "PUNCT", "ADP", "NUM", "SYM", "SCONJ", "ADJ", "PART", "DET", "CCONJ", "PROPN", "PRON", "X", "ADV", "INTJ", "VERB", "AUX"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 17, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-PROD", "I-PROD", "B-LOC", "I-LOC", "B-GPE", "I-GPE", "B-DRV", "I-DRV", "B-EVT", "I-EVT", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "norne", "config_name": "bokmaal-8", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 10032169, "num_examples": 15696, "dataset_name": "norne"}, "validation": {"name": "validation", "num_bytes": 1501730, "num_examples": 2410, "dataset_name": "norne"}, "test": {"name": "test", "num_bytes": 1234272, "num_examples": 1939, "dataset_name": "norne"}}, "download_checksums": {"https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-train.conllu": {"num_bytes": 16437262, "checksum": "b17efd70034071f65ba5e3a15bc15f9a597f4c1dd3febb2ffec964906a9c1a98"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-dev.conllu": {"num_bytes": 2453504, "checksum": "dba752ca6dc0c628f7cf12e9131b2627be0dff082bd96311bafce40590c46f9c"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-test.conllu": {"num_bytes": 2018475, "checksum": "ace6fa65758541333e6a64210fa8466145e024cbbab18a156e8757c8b21c103b"}}, "download_size": 20909241, "post_processing_size": null, "dataset_size": 12768171, "size_in_bytes": 33677412}, "nynorsk-8": {"description": "NorNE is a manually annotated\ncorpus of named entities which extends the annotation of the existing\nNorwegian Dependency Treebank. Comprising both of the official standards of\nwritten Norwegian (Bokm\u00e5l and Nynorsk), the corpus contains around 600,000\ntokens and annotates a rich set of entity types including persons,\norganizations, locations, geo-political entities, products, and events,\nin addition to a class corresponding to nominals derived from names.\n", "citation": "@inproceedings{johansen2019ner,\n title={NorNE: Annotating Named Entities for Norwegian},\n author={Fredrik J\u00f8rgensen, Tobias Aasmoe, Anne-Stine Ruud Husev\u00e5g,\n Lilja \u00d8vrelid, and Erik Velldal},\n booktitle={LREC 2020},\n year={2020},\n url={https://arxiv.org/abs/1911.12146}\n}\n", "homepage": "https://github.com/ltgoslo/norne", "license": "", "features": {"idx": {"dtype": "string", "id": null, "_type": "Value"}, "lang": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lemmas": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 17, "names": ["NOUN", "PUNCT", "ADP", "NUM", "SYM", "SCONJ", "ADJ", "PART", "DET", "CCONJ", "PROPN", "PRON", "X", "ADV", "INTJ", "VERB", "AUX"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 17, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-PROD", "I-PROD", "B-LOC", "I-LOC", "B-GPE", "I-GPE", "B-DRV", "I-DRV", "B-EVT", "I-EVT", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "norne", "config_name": "nynorsk-8", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 10072260, "num_examples": 14174, "dataset_name": "norne"}, "validation": {"name": "validation", "num_bytes": 1278029, "num_examples": 1890, "dataset_name": "norne"}, "test": {"name": "test", "num_bytes": 1023358, "num_examples": 1511, "dataset_name": "norne"}}, "download_checksums": {"https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-train.conllu": {"num_bytes": 16444176, "checksum": "589564c68ab0763c2574ad90ea8928f029144c966e4af064e59a0865c53c5ef2"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-dev.conllu": {"num_bytes": 2096713, "checksum": "6519a00c0ddc4f8ef2605d7c5326adcafb2dfa2df439e281c95e1a0ef218b928"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-test.conllu": {"num_bytes": 1668364, "checksum": "6b99cafd7019ed6d1eea1b51a0707df89cad597fe588b5987b9f278ffd87588c"}}, "download_size": 20209253, "post_processing_size": null, "dataset_size": 12373647, "size_in_bytes": 32582900}, "combined-8": {"description": "NorNE is a manually annotated\ncorpus of named entities which extends the annotation of the existing\nNorwegian Dependency Treebank. Comprising both of the official standards of\nwritten Norwegian (Bokm\u00e5l and Nynorsk), the corpus contains around 600,000\ntokens and annotates a rich set of entity types including persons,\norganizations, locations, geo-political entities, products, and events,\nin addition to a class corresponding to nominals derived from names.\n", "citation": "@inproceedings{johansen2019ner,\n title={NorNE: Annotating Named Entities for Norwegian},\n author={Fredrik J\u00f8rgensen, Tobias Aasmoe, Anne-Stine Ruud Husev\u00e5g,\n Lilja \u00d8vrelid, and Erik Velldal},\n booktitle={LREC 2020},\n year={2020},\n url={https://arxiv.org/abs/1911.12146}\n}\n", "homepage": "https://github.com/ltgoslo/norne", "license": "", "features": {"idx": {"dtype": "string", "id": null, "_type": "Value"}, "lang": {"dtype": "string", "id": null, "_type": "Value"}, "text": {"dtype": "string", "id": null, "_type": "Value"}, "tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "lemmas": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pos_tags": {"feature": {"num_classes": 17, "names": ["NOUN", "PUNCT", "ADP", "NUM", "SYM", "SCONJ", "ADJ", "PART", "DET", "CCONJ", "PROPN", "PRON", "X", "ADV", "INTJ", "VERB", "AUX"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}, "ner_tags": {"feature": {"num_classes": 17, "names": ["O", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-PROD", "I-PROD", "B-LOC", "I-LOC", "B-GPE", "I-GPE", "B-DRV", "I-DRV", "B-EVT", "I-EVT", "B-MISC", "I-MISC"], "names_file": null, "id": null, "_type": "ClassLabel"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "builder_name": "norne", "config_name": "combined-8", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 20104393, "num_examples": 29870, "dataset_name": "norne"}, "validation": {"name": "validation", "num_bytes": 2779723, "num_examples": 4300, "dataset_name": "norne"}, "test": {"name": "test", "num_bytes": 2257594, "num_examples": 3450, "dataset_name": "norne"}}, "download_checksums": {"https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-train.conllu": {"num_bytes": 16437262, "checksum": "b17efd70034071f65ba5e3a15bc15f9a597f4c1dd3febb2ffec964906a9c1a98"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-dev.conllu": {"num_bytes": 2453504, "checksum": "dba752ca6dc0c628f7cf12e9131b2627be0dff082bd96311bafce40590c46f9c"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nob/no_bokmaal-ud-test.conllu": {"num_bytes": 2018475, "checksum": "ace6fa65758541333e6a64210fa8466145e024cbbab18a156e8757c8b21c103b"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-train.conllu": {"num_bytes": 16444176, "checksum": "589564c68ab0763c2574ad90ea8928f029144c966e4af064e59a0865c53c5ef2"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-dev.conllu": {"num_bytes": 2096713, "checksum": "6519a00c0ddc4f8ef2605d7c5326adcafb2dfa2df439e281c95e1a0ef218b928"}, "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/nno/no_nynorsk-ud-test.conllu": {"num_bytes": 1668364, "checksum": "6b99cafd7019ed6d1eea1b51a0707df89cad597fe588b5987b9f278ffd87588c"}}, "download_size": 41118494, "post_processing_size": null, "dataset_size": 25141710, "size_in_bytes": 66260204}}
dummy/bokmaal-7/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5834625d6371b91626f063ccbb60fe8783ab9a4de62be80fd89691353cc7df8a
3
+ size 2221
dummy/bokmaal-8/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5834625d6371b91626f063ccbb60fe8783ab9a4de62be80fd89691353cc7df8a
3
+ size 2221
dummy/bokmaal/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5834625d6371b91626f063ccbb60fe8783ab9a4de62be80fd89691353cc7df8a
3
+ size 2221
dummy/combined-7/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c22da2907b4e091854cfabfc5095bb11024982ba72d88ca192396a4e0481666
3
+ size 4054
dummy/combined-8/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c22da2907b4e091854cfabfc5095bb11024982ba72d88ca192396a4e0481666
3
+ size 4054
dummy/combined/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c22da2907b4e091854cfabfc5095bb11024982ba72d88ca192396a4e0481666
3
+ size 4054
dummy/nynorsk-7/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a60202ad53e010eb1f4c8ef5cfb95433d0079e14e1ee804569069a946ddc3087
3
+ size 2058
dummy/nynorsk-8/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a60202ad53e010eb1f4c8ef5cfb95433d0079e14e1ee804569069a946ddc3087
3
+ size 2058
dummy/nynorsk/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a60202ad53e010eb1f4c8ef5cfb95433d0079e14e1ee804569069a946ddc3087
3
+ size 2058
norne.py ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ """NorNE: Annotating Named Entities for Norwegian."""
18
+
19
+ import conllu
20
+
21
+ import datasets
22
+
23
+
24
+ _CITATION = """\
25
+ @inproceedings{johansen2019ner,
26
+ title={NorNE: Annotating Named Entities for Norwegian},
27
+ author={Fredrik Jørgensen, Tobias Aasmoe, Anne-Stine Ruud Husevåg,
28
+ Lilja Øvrelid, and Erik Velldal},
29
+ booktitle={LREC 2020},
30
+ year={2020},
31
+ url={https://arxiv.org/abs/1911.12146}
32
+ }
33
+ """
34
+
35
+ _DESCRIPTION = """\
36
+ NorNE is a manually annotated
37
+ corpus of named entities which extends the annotation of the existing
38
+ Norwegian Dependency Treebank. Comprising both of the official standards of
39
+ written Norwegian (Bokmål and Nynorsk), the corpus contains around 600,000
40
+ tokens and annotates a rich set of entity types including persons,
41
+ organizations, locations, geo-political entities, products, and events,
42
+ in addition to a class corresponding to nominals derived from names.
43
+ """
44
+
45
+ _HOMEPAGE = "https://github.com/ltgoslo/norne"
46
+
47
+ _URL = "https://raw.githubusercontent.com/ltgoslo/norne/master/ud/"
48
+ _BOKMAAL_TRAIN = "nob/no_bokmaal-ud-train.conllu"
49
+ _BOKMAAL_DEV = "nob/no_bokmaal-ud-dev.conllu"
50
+ _BOKMAAL_TEST = "nob/no_bokmaal-ud-test.conllu"
51
+ _NYNORSK_TRAIN = "nno/no_nynorsk-ud-train.conllu"
52
+ _NYNORSK_DEV = "nno/no_nynorsk-ud-dev.conllu"
53
+ _NYNORSK_TEST = "nno/no_nynorsk-ud-test.conllu"
54
+
55
+
56
+ class NorneConfig(datasets.BuilderConfig):
57
+ """BuilderConfig for NorNE."""
58
+
59
+ def __init__(self, **kwargs):
60
+ """BuilderConfig for NorNE.
61
+
62
+ Args:
63
+ **kwargs: keyword arguments forwarded to super.
64
+ """
65
+ super(NorneConfig, self).__init__(**kwargs)
66
+
67
+
68
+ class Norne(datasets.GeneratorBasedBuilder):
69
+ """NorNE dataset."""
70
+
71
+ BUILDER_CONFIGS = [
72
+ NorneConfig(name="bokmaal", version=datasets.Version("1.0.0"), description="NorNE bokmaal dataset (full set)"),
73
+ NorneConfig(name="nynorsk", version=datasets.Version("1.0.0"), description="NorNE nynorsk dataset (full set)"),
74
+ NorneConfig(
75
+ name="combined",
76
+ version=datasets.Version("1.0.0"),
77
+ description="NorNE bokmaal and nynorsk dataset (full set)",
78
+ ),
79
+ NorneConfig(
80
+ name="bokmaal-7",
81
+ version=datasets.Version("1.0.0"),
82
+ description="NorNE bokmaal dataset (GPE_LOC/GPE_ORG as LOC/ORG)",
83
+ ),
84
+ NorneConfig(
85
+ name="nynorsk-7",
86
+ version=datasets.Version("1.0.0"),
87
+ description="NorNE nynorsk dataset (GPE_LOC/GPE_ORG as LOC/ORG)",
88
+ ),
89
+ NorneConfig(
90
+ name="combined-7",
91
+ version=datasets.Version("1.0.0"),
92
+ description="NorNE bokmaal and nynorsk dataset (GPE_LOC/GPE_ORG as LOC/ORG)",
93
+ ),
94
+ NorneConfig(
95
+ name="bokmaal-8",
96
+ version=datasets.Version("1.0.0"),
97
+ description="NorNE bokmaal dataset (GPE_LOC/GPE_ORG as GPE)",
98
+ ),
99
+ NorneConfig(
100
+ name="nynorsk-8",
101
+ version=datasets.Version("1.0.0"),
102
+ description="NorNE nynorsk dataset (GPE_LOC/GPE_ORG as GPE)",
103
+ ),
104
+ NorneConfig(
105
+ name="combined-8",
106
+ version=datasets.Version("1.0.0"),
107
+ description="NorNE bokmaal and nynorsk dataset (GPE_LOC/GPE_ORG as GPE)",
108
+ ),
109
+ ]
110
+
111
+ def _info(self):
112
+ if self.config.name.endswith("-7"):
113
+ ner_tags = datasets.Sequence(
114
+ datasets.features.ClassLabel(
115
+ names=[
116
+ "O",
117
+ "B-PER",
118
+ "I-PER",
119
+ "B-ORG",
120
+ "I-ORG",
121
+ "B-PROD",
122
+ "I-PROD",
123
+ "B-LOC",
124
+ "I-LOC",
125
+ "B-DRV",
126
+ "I-DRV",
127
+ "B-EVT",
128
+ "I-EVT",
129
+ "B-MISC",
130
+ "I-MISC",
131
+ ]
132
+ )
133
+ )
134
+ elif self.config.name.endswith("-8"):
135
+ ner_tags = datasets.Sequence(
136
+ datasets.features.ClassLabel(
137
+ names=[
138
+ "O",
139
+ "B-PER",
140
+ "I-PER",
141
+ "B-ORG",
142
+ "I-ORG",
143
+ "B-PROD",
144
+ "I-PROD",
145
+ "B-LOC",
146
+ "I-LOC",
147
+ "B-GPE",
148
+ "I-GPE",
149
+ "B-DRV",
150
+ "I-DRV",
151
+ "B-EVT",
152
+ "I-EVT",
153
+ "B-MISC",
154
+ "I-MISC",
155
+ ]
156
+ )
157
+ )
158
+ else:
159
+ ner_tags = datasets.Sequence(
160
+ datasets.features.ClassLabel(
161
+ names=[
162
+ "O",
163
+ "B-PER",
164
+ "I-PER",
165
+ "B-ORG",
166
+ "I-ORG",
167
+ "B-GPE_LOC",
168
+ "I-GPE_LOC",
169
+ "B-PROD",
170
+ "I-PROD",
171
+ "B-LOC",
172
+ "I-LOC",
173
+ "B-GPE_ORG",
174
+ "I-GPE_ORG",
175
+ "B-DRV",
176
+ "I-DRV",
177
+ "B-EVT",
178
+ "I-EVT",
179
+ "B-MISC",
180
+ "I-MISC",
181
+ ]
182
+ )
183
+ )
184
+ return datasets.DatasetInfo(
185
+ description=_DESCRIPTION,
186
+ features=datasets.Features(
187
+ {
188
+ "idx": datasets.Value("string"),
189
+ "lang": datasets.Value("string"),
190
+ "text": datasets.Value("string"),
191
+ "tokens": datasets.Sequence(datasets.Value("string")),
192
+ "lemmas": datasets.Sequence(datasets.Value("string")),
193
+ "pos_tags": datasets.Sequence(
194
+ datasets.features.ClassLabel(
195
+ names=[
196
+ "NOUN",
197
+ "PUNCT",
198
+ "ADP",
199
+ "NUM",
200
+ "SYM",
201
+ "SCONJ",
202
+ "ADJ",
203
+ "PART",
204
+ "DET",
205
+ "CCONJ",
206
+ "PROPN",
207
+ "PRON",
208
+ "X",
209
+ "ADV",
210
+ "INTJ",
211
+ "VERB",
212
+ "AUX",
213
+ ]
214
+ )
215
+ ),
216
+ "ner_tags": ner_tags,
217
+ }
218
+ ),
219
+ supervised_keys=None,
220
+ homepage=_HOMEPAGE,
221
+ citation=_CITATION,
222
+ )
223
+
224
+ def _split_generators(self, dl_manager):
225
+ """Returns SplitGenerators."""
226
+ train_filepaths = []
227
+ dev_filepaths = []
228
+ test_filepaths = []
229
+ langs = []
230
+ config_name = self.config.name.replace("-7", "").replace("-8", "")
231
+ if config_name in ("bokmaal", "combined"):
232
+ downloaded_files = dl_manager.download_and_extract(
233
+ {
234
+ "train": f"{_URL}{_BOKMAAL_TRAIN}",
235
+ "dev": f"{_URL}{_BOKMAAL_DEV}",
236
+ "test": f"{_URL}{_BOKMAAL_TEST}",
237
+ }
238
+ )
239
+ train_filepaths.append(downloaded_files["train"])
240
+ dev_filepaths.append(downloaded_files["dev"])
241
+ test_filepaths.append(downloaded_files["test"])
242
+ langs.append("bokmaal")
243
+ if config_name in ("nynorsk", "combined"):
244
+ downloaded_files = dl_manager.download_and_extract(
245
+ {
246
+ "train": f"{_URL}{_NYNORSK_TRAIN}",
247
+ "dev": f"{_URL}{_NYNORSK_DEV}",
248
+ "test": f"{_URL}{_NYNORSK_TEST}",
249
+ }
250
+ )
251
+ train_filepaths.append(downloaded_files["train"])
252
+ dev_filepaths.append(downloaded_files["dev"])
253
+ test_filepaths.append(downloaded_files["test"])
254
+ langs.append("nynorsk")
255
+ return [
256
+ datasets.SplitGenerator(
257
+ name=datasets.Split.TRAIN, gen_kwargs={"filepaths": train_filepaths, "langs": langs}
258
+ ),
259
+ datasets.SplitGenerator(
260
+ name=datasets.Split.VALIDATION, gen_kwargs={"filepaths": dev_filepaths, "langs": langs}
261
+ ),
262
+ datasets.SplitGenerator(
263
+ name=datasets.Split.TEST, gen_kwargs={"filepaths": test_filepaths, "langs": langs}
264
+ ),
265
+ ]
266
+
267
+ def _generate_examples(self, filepaths, langs):
268
+ idx = 0
269
+ if self.config.name.endswith("-7"):
270
+
271
+ def filter_tags(x):
272
+ return x.replace("GPE_", "")
273
+
274
+ elif self.config.name.endswith("-8"):
275
+
276
+ def filter_tags(x):
277
+ return x.replace("_LOC", "").replace("_ORG", "")
278
+
279
+ else:
280
+
281
+ def filter_tags(x):
282
+ return x
283
+
284
+ for filepath, lang in zip(filepaths, langs):
285
+ with open(filepath, "r", encoding="utf-8") as data_file:
286
+ tokens = list(conllu.parse_incr(data_file))
287
+ for sent in tokens:
288
+ yield idx, {
289
+ "idx": sent.metadata["sent_id"],
290
+ "lang": lang,
291
+ "text": sent.metadata["text"],
292
+ "tokens": [token["form"] for token in sent],
293
+ "lemmas": [token["lemma"] for token in sent],
294
+ "pos_tags": [token["upos"] for token in sent],
295
+ "ner_tags": [filter_tags(token["misc"].get("name", "O")) for token in sent],
296
+ }
297
+ idx += 1