Datasets:
ltg
/

Modalities:
Text
Formats:
parquet
Languages:
Norwegian
ArXiv:
Libraries:
Datasets
pandas
License:
vmkhlv commited on
Commit
ca17faf
·
verified ·
1 Parent(s): d657153

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +220 -0
README.md CHANGED
@@ -29,3 +29,223 @@ configs:
29
  - split: test
30
  path: data/test-*
31
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  - split: test
30
  path: data/test-*
31
  ---
32
+
33
+
34
+ ## Dataset Description
35
+
36
+ - **Homepage:** [NorNE](https://github.com/ltgoslo/norne/)
37
+ - **Repository:** [Github](https://github.com/ltgoslo/norne/)
38
+ - **Paper:** https://arxiv.org/abs/1911.12146
39
+ - **Leaderboard:**
40
+ - **Point of Contact:**
41
+
42
+ ### Dataset Summary
43
+
44
+ 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.
45
+
46
+ 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.
47
+
48
+ ### Supported Tasks and Leaderboards
49
+
50
+ NorNE ads named entity annotations on top of the Norwegian Dependency Treebank.
51
+
52
+ ### Languages
53
+
54
+ 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.
55
+
56
+ ## Dataset Structure
57
+
58
+ Each entry contains text sentences, their language, identifiers, tokens, lemmas, and corresponding NER and POS tag lists.
59
+
60
+ ### Data Instances
61
+
62
+ An example of the `train` split of the `bokmaal` config.
63
+
64
+ ```python
65
+ {'idx': '000001',
66
+ 'lang': 'bokmaal',
67
+ 'lemmas': ['lam', 'og', 'piggvar', 'på', 'bryllupsmeny'],
68
+ 'ner_tags': [0, 0, 0, 0, 0],
69
+ 'pos_tags': [0, 9, 0, 5, 0],
70
+ 'text': 'Lam og piggvar på bryllupsmenyen',
71
+ 'tokens': ['Lam', 'og', 'piggvar', 'på', 'bryllupsmenyen']}
72
+ ```
73
+
74
+ ### Data Fields
75
+
76
+
77
+ Each entry is annotated with the next fields:
78
+
79
+ - `idx` (`int`), text (sentence) identifier from the NorNE dataset
80
+ - `lang` (`str`), language variety, either `bokmaal`, `nynorsk` or `combined`
81
+ - `text` (`str`), plain text
82
+ - `tokens` (`List[str]`), list of tokens extracted from `text`
83
+ - `lemmas` (`List[str]`), list of lemmas extracted from `tokens`
84
+ - `ner_tags` (`List[int]`), list of numeric NER tags for each token in `tokens`
85
+ - `pos_tags` (`List[int]`), list of numeric PoS tags for each token in `tokens`
86
+
87
+ An example DataFrame obtained from the dataset:
88
+
89
+ <table class="dataframe" border="1">
90
+ <thead>
91
+ <tr style="text-align: right;">
92
+ <th></th>
93
+ <th>idx</th>
94
+ <th>lang</th>
95
+ <th>text</th>
96
+ <th>tokens</th>
97
+ <th>lemmas</th>
98
+ <th>ner_tags</th>
99
+ <th>pos_tags</th>
100
+ </tr>
101
+ </thead>
102
+ <tbody>
103
+ <tr>
104
+ <th>0</th>
105
+ <td>000001</td>
106
+ <td>bokmaal</td>
107
+ <td>Lam og piggvar på bryllupsmenyen</td>
108
+ <td>[Lam, og, piggvar, på, bryllupsmenyen]</td>
109
+ <td>[lam, og, piggvar, på, bryllupsmeny]</td>
110
+ <td>[0, 0, 0, 0, 0]</td>
111
+ <td>[0, 9, 0, 5, 0]</td>
112
+ </tr>
113
+ <tr>
114
+ <th>1</th>
115
+ <td>000002</td>
116
+ <td>bokmaal</td>
117
+ <td>Kamskjell, piggvar og lammefilet sto på menyen...</td>
118
+ <td>[Kamskjell, ,, piggvar, og, lammefilet, sto, p...</td>
119
+ <td>[kamskjell, $,, piggvar, og, lammefilet, stå, ...</td>
120
+ <td>[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]</td>
121
+ <td>[0, 1, 0, 9, 0, 15, 2, 0, 2, 8, 6, 0, 1]</td>
122
+ </tr>
123
+ <tr>
124
+ <th>2</th>
125
+ <td>000003</td>
126
+ <td>bokmaal</td>
127
+ <td>Og til dessert: Parfait à la Mette-Marit.</td>
128
+ <td>[Og, til, dessert, :, Parfait, à, la, Mette-Ma...</td>
129
+ <td>[og, til, dessert, $:, Parfait, à, la, Mette-M...</td>
130
+ <td>[0, 0, 0, 0, 7, 8, 8, 8, 0]</td>
131
+ <td>[9, 2, 0, 1, 10, 12, 12, 10, 1]</td>
132
+ </tr>
133
+ </tbody>
134
+ </table>
135
+
136
+ ### Data Splits
137
+
138
+ There are three splits: `train`, `validation` and `test`.
139
+
140
+ | Config | Split | Total |
141
+ | :---------|-------------:|-------:|
142
+ | `bokmaal` | `train` | 15696 |
143
+ | `bokmaal` | `validation` | 2410 |
144
+ | `bokmaal` | `test` | 1939 |
145
+ | `nynorsk` | `train` | 14174 |
146
+ | `nynorsk` | `validation` | 1890 |
147
+ | `nynorsk` | `test` | 1511 |
148
+ | `combined`| `test` | 29870 |
149
+ | `combined`| `validation` | 4300 |
150
+ | `combined`| `test` | 3450 |
151
+
152
+ ## Dataset Creation
153
+
154
+ ### Curation Rationale
155
+
156
+ 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),
157
+ in that a name has a unique reference and its meaning is constant (there are exceptions in the annotations, e.g. "Regjeringen" (en. "Government")).
158
+ 2. It is the usage of a name that determines the entity type, not the default/literal sense of the name,
159
+ 3. If there is an ambiguity in the type/sense of a name, then the the default/literal sense of the name is chosen
160
+ (following [Markert and Nissim, 2002](http://www.lrec-conf.org/proceedings/lrec2002/pdf/11.pdf)).
161
+
162
+ For more details, see the "Annotation Guidelines.pdf" distributed with the corpus.
163
+
164
+ ### Source Data
165
+
166
+ Data was collected using blogs and newspapers in Norwegian, as well as parliament speeches and governamental reports.
167
+
168
+ #### Initial Data Collection and Normalization
169
+
170
+ The texts in the Norwegian Dependency Treebank (NDT) are manually annotated with morphological features, syntactic functions
171
+ and hierarchical structure. The formalism used for the syntactic annotation is dependency grammar.
172
+
173
+ The treebanks consists of two parts, one part in Norwegian Bokmål (`nob`) and one part in Norwegian Nynorsk (`nno`).
174
+ Both parts contain around 300.000 tokens, and are a mix of different non-fictional genres.
175
+
176
+ See the [NDT webpage](https://www.nb.no/sprakbanken/show?serial=sbr-10) for more details.
177
+
178
+ ### Annotations
179
+
180
+ The following types of entities are annotated:
181
+
182
+ - **Person (`PER`):** Real or fictional characters and animals
183
+ - - **Organization (`ORG`):** Any collection of people, such as firms, institutions, organizations, music groups,
184
+ sports teams, unions, political parties etc.
185
+ - **Location (`LOC`):** Geographical places, buildings and facilities
186
+ - **Geo-political entity (`GPE`):** Geographical regions defined by political and/or social groups.
187
+ A GPE entity subsumes and does not distinguish between a nation, its region, its government, or its people
188
+ - **Product (`PROD`):** Artificially produced entities are regarded products. This may include more abstract entities, such as speeches,
189
+ radio shows, programming languages, contracts, laws and ideas.
190
+ - **Event (`EVT`):** Festivals, cultural events, sports events, weather phenomena, wars, etc. Events are bounded in time and space.
191
+ - **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").
192
+ - **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.
193
+
194
+ Furthermore, all `GPE` entities are additionally sub-categorized as being either `ORG` or `LOC`, with the two annotation levels separated by an underscore:
195
+
196
+ - `GPE_LOC`: Geo-political entity, with a locative sense (e.g. "John lives in _Spain_")
197
+ - `GPE_ORG`: Geo-political entity, with an organisation sense (e.g. "_Spain_ declined to meet with Belgium")
198
+
199
+ 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:
200
+
201
+ - 7 types, deleting `_GPE`: **`ORG`**, **`LOC`**, `PER`, `PROD`, `EVT`, `DRV`, `MISC`
202
+ - 8 types, deleting `LOC_` and `ORG_`: **`ORG`**, **`LOC`**, **`GPE`**, `PER`, `PROD`, `EVT`, `DRV`, `MISC`
203
+ - 9 types, keeping all types: **`ORG`**, **`LOC`**, **`GPE_LOC`**, **`GPE_ORG`**, `PER`, `PROD`, `EVT`, `DRV`, `MISC`
204
+
205
+ 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):
206
+
207
+ | Type | Train | Dev | Test | Total |
208
+ | :--------|-------:|-------:|-------:|-------:|
209
+ | `PER` | 4033 | 607 | 560 | 5200 |
210
+ | `ORG` | 2828 | 400 | 283 | 3511 |
211
+ | `GPE_LOC`| 2132 | 258 | 257 | 2647 |
212
+ | `PROD` | 671 | 162 | 71 | 904 |
213
+ | `LOC` | 613 | 109 | 103 | 825 |
214
+ | `GPE_ORG`| 388 | 55 | 50 | 493 |
215
+ | `DRV` | 519 | 77 | 48 | 644 |
216
+ | `EVT` | 131 | 9 | 5 | 145 |
217
+ | `MISC` | 8 | 0 | 0 | 0 |
218
+
219
+ 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.
220
+
221
+ ## Additional Information
222
+
223
+ ### Dataset Curators
224
+
225
+ 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.
226
+
227
+ NorNE was added to 🤗 Datasets by the AI-Lab at the National Library of Norway.
228
+
229
+ ### Licensing Information
230
+
231
+ The NorNE corpus is published under the same [license](https://github.com/ltgoslo/norne/blob/master/LICENSE_NDT.txt) as the Norwegian Dependency Treebank
232
+
233
+ ### Citation Information
234
+
235
+ This dataset is described in the paper _NorNE: Annotating Named Entities for Norwegian_ by
236
+ 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.
237
+
238
+ ```bibtex
239
+ @inproceedings{johansen2019ner,
240
+ title={NorNE: Annotating Named Entities for Norwegian},
241
+ author={Fredrik Jørgensen, Tobias Aasmoe, Anne-Stine Ruud Husevåg,
242
+ Lilja Øvrelid, and Erik Velldal},
243
+ booktitle={LREC 2020},
244
+ year={2020},
245
+ url={https://arxiv.org/abs/1911.12146}
246
+ }
247
+ ```
248
+
249
+ ### Contributions
250
+
251
+ Thanks to [@versae](https://github.com/versae) for adding this dataset.