File size: 4,455 Bytes
777d0d3
 
add14f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5ac7ffb
add14f3
 
5ac7ffb
add14f3
 
5ac7ffb
add14f3
5ac7ffb
 
2104b9e
777d0d3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ce10580
777d0d3
 
ce10580
777d0d3
 
ce10580
777d0d3
ce10580
 
2104b9e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cb91371
2104b9e
 
cb91371
2104b9e
 
cb91371
2104b9e
cb91371
 
777d0d3
add14f3
 
 
 
 
 
 
 
777d0d3
 
 
 
 
 
 
 
2104b9e
 
 
 
 
 
 
 
7d8dc68
 
 
 
777d0d3
7d8dc68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28206f5
7d8dc68
 
 
 
 
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
---
dataset_info:
- config_name: nno_eng
  features:
  - name: url_nno
    dtype: string
  - name: domain_nno
    dtype: string
  - name: date_nno
    dtype: timestamp[s]
  - name: mimetype_nno
    dtype: string
  - name: fulltext_nno
    list: string
  - name: url_eng
    dtype: string
  - name: domain_eng
    dtype: string
  - name: date_eng
    dtype: timestamp[s]
  - name: mimetype_eng
    dtype: string
  - name: fulltext_eng
    list: string
  splits:
  - name: train
    num_bytes: 642887589
    num_examples: 30901
  - name: validation
    num_bytes: 94753134
    num_examples: 3796
  - name: test
    num_bytes: 62963101
    num_examples: 3795
  download_size: 366544846
  dataset_size: 800603824
- config_name: nob_eng
  features:
  - name: url_nob
    dtype: string
  - name: domain_nob
    dtype: string
  - name: date_nob
    dtype: timestamp[s]
  - name: mimetype_nob
    dtype: string
  - name: fulltext_nob
    list: string
  - name: url_eng
    dtype: string
  - name: domain_eng
    dtype: string
  - name: date_eng
    dtype: timestamp[s]
  - name: mimetype_eng
    dtype: string
  - name: fulltext_eng
    list: string
  splits:
  - name: train
    num_bytes: 2831274825
    num_examples: 157044
  - name: validation
    num_bytes: 717719563
    num_examples: 19720
  - name: test
    num_bytes: 1739432134
    num_examples: 19720
  download_size: 2242424283
  dataset_size: 5288426522
- config_name: nob_nno
  features:
  - name: url_nno
    dtype: string
  - name: domain_nno
    dtype: string
  - name: date_nno
    dtype: timestamp[s]
  - name: mimetype_nno
    dtype: string
  - name: fulltext_nno
    list: string
  - name: url_nob
    dtype: string
  - name: domain_nob
    dtype: string
  - name: date_nob
    dtype: timestamp[s]
  - name: mimetype_nob
    dtype: string
  - name: fulltext_nob
    list: string
  splits:
  - name: train
    num_bytes: 246770050
    num_examples: 31434
  - name: validation
    num_bytes: 64788506
    num_examples: 3928
  - name: test
    num_bytes: 65141193
    num_examples: 3929
  download_size: 137988628
  dataset_size: 376699749
configs:
- config_name: nno_eng
  data_files:
  - split: train
    path: nno_eng/train-*
  - split: validation
    path: nno_eng/validation-*
  - split: test
    path: nno_eng/test-*
- config_name: nob_eng
  data_files:
  - split: train
    path: nob_eng/train-*
  - split: validation
    path: nob_eng/validation-*
  - split: test
    path: nob_eng/test-*
- config_name: nob_nno
  data_files:
  - split: train
    path: nob_nno/train-*
  - split: validation
    path: nob_nno/validation-*
  - split: test
    path: nob_nno/test-*
language:
- en
- nb
- nn
---

# Målfrid parallel 

This dataset contains parallel data for the following languages: Norwegian Bokmål, Norwegian Nynorsk, English. 

## Loading datasets
The dataset is organized by the three language pairs "nob_nno" (Norwegian Bokmål, Norwegian Nynorsk), "nob_eng" (Norwegian Bokmål, English) and "nno_eng" (Norwegian Nynorsk, English).  
Each division has a train, val, test split, and there is no overlap of source domains between the splits.

Load the dataset you want with the `name` arg like this: 
```python
from datasets import load_dataset

ds = load_dataset("NbAiLab/maalfrid_parallel", name="nno_eng")

```


## Source data 
The source data is from the Målfrid project, which involves scraping .no governmental web sites to report language use.  
We combined the following datasets:
- Målfrid 2021 [resource catalogue](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-69/)
- Målfrid 2022 [resource catalogue](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-97/)
- Målfrid 2023 [resource catalogue](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-98/)
- Målfrid 2024 [resource catalogue](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-99/)
- Målfrid 2025 [resource catalogue](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-102/)

## Alignment method
The document pairs were aligned per website with [NbAiLab/nb-sbert-v2-base](https://huggingface.co/NbAiLab/nb-sbert-v2-base) and the sentence-transformers library.  
For English-Norwegian parallel data, the minimun cosine similarity threshold is 0.80, and for Norwegian parallel data it is 0.95. See [source code](https://github.com/Sprakbanken/alignment_eksperimenter) 



## Licence
Norwegian Licence for Open Government Data (NLOD) https://data.norge.no/nlod/en/2.0