File size: 2,096 Bytes
819a456
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e265d8c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
---
dataset_info:
  features:
  - name: tokens
    sequence: string
  - name: ner_tags
    sequence: int64
  - name: dataset
    dtype: string
  splits:
  - name: train
    num_bytes: 38152132
    num_examples: 161379
  - name: validation
    num_bytes: 10359916
    num_examples: 48470
  - name: test
    num_bytes: 11040741
    num_examples: 50498
  download_size: 15450325
  dataset_size: 59552789
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: validation
    path: data/validation-*
  - split: test
    path: data/test-*
---


Created from the three datasets `wikiann`, `norne`, `dane`, and `KBLab/sucx3_ner`. 

See detailed config below:

```python
dataset_ids = [
    "wikiann",
    "dane",
    "norne", 
    "KBLab/sucx3_ner"
]

dataset_subsets = {
    "wikiann": [
        "nn", "no", "da", "sv", "fo", "is"
    ],
    "dane": [None],
    "norne": ["combined-7"],
    "KBLab/sucx3_ner": ["original_cased"]
}
```

Unified to the following BIO-scheme:


```
# O: 0
# B-PER: 1
# I-PER: 2
# B-ORG: 3
# I-ORG: 4
# B-LOC: 5
# I-LOC: 6
# B-MISC: 7
# I-MISC: 8

mappers = {
    "norne": {
        0: 0,
        1: 1,
        2: 2,
        3: 3,
        4: 4,
        # PROD->MISC
        5: 7,
        6: 8,
        # LOC -> LOC
        7: 5,
        8: 6,
        # DRV -> MISC (names, but derived)
        9: 7,
        10: 8,
        # EVT -> MISC (events)
        11: 7,
        12: 8,
        # MISC -> MISC
        13: 7,
        14: 8,
    },
    "KBLab/sucx3_ner": {
        "O": 0,
        # PER
        "B-person": 1,
        "I-person": 2,
        # LOC
        "B-place": 5,
        "I-place": 6,
        # ORG
        "I-inst": 4,
        "B-inst": 3,
        # MISC
        # this is considered a 'work' by someone or something
        "B-work": 7,
        "I-work": 8,
        "B-animal": 7,
        "I-animal": 8,
        "B-product": 7,
        "I-product": 8,
        "B-event": 7,
        "I-event": 8,
        "B-other": 7,
        "I-other": 8,
        # mythological
        "B-myth": 7,
        "I-myth": 8,
    },
}


```