Update README.md
Browse files
README.md
CHANGED
|
@@ -151,4 +151,43 @@ configs:
|
|
| 151 |
path: nob_nno/validation-*
|
| 152 |
- split: test
|
| 153 |
path: nob_nno/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
path: nob_nno/validation-*
|
| 152 |
- split: test
|
| 153 |
path: nob_nno/test-*
|
| 154 |
+
language:
|
| 155 |
+
- en
|
| 156 |
+
- nb
|
| 157 |
+
- nn
|
| 158 |
---
|
| 159 |
+
|
| 160 |
+
# Målfrid parallel
|
| 161 |
+
|
| 162 |
+
This dataset contains parallel data for the following languages: Norwegian Bokmål, Norwegian Nynorsk, English.
|
| 163 |
+
|
| 164 |
+
## Loading datasets
|
| 165 |
+
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).
|
| 166 |
+
Each division has a train, val, test split, and there is no overlap of source domains between the splits.
|
| 167 |
+
|
| 168 |
+
Load the dataset you want with the `name` arg like this:
|
| 169 |
+
```python
|
| 170 |
+
from datasets import load_dataset
|
| 171 |
+
|
| 172 |
+
ds = load_dataset("NbAiLab/maalfrid_parallel", name="nno_eng")
|
| 173 |
+
|
| 174 |
+
```
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
## Source data
|
| 178 |
+
The source data is from the Målfrid project, which involves scraping .no governmental web sites to report language use.
|
| 179 |
+
We combined the following datasets:
|
| 180 |
+
- Målfrid 2021 [resource catalogue](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-69/)
|
| 181 |
+
- Målfrid 2022 [resource catalogue](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-97/)
|
| 182 |
+
- Målfrid 2023 [resource catalogue](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-98/)
|
| 183 |
+
- Målfrid 2024 [resource catalogue](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-99/)
|
| 184 |
+
- Målfrid 2025 [resource catalogue](https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-102/)
|
| 185 |
+
|
| 186 |
+
## Alignment method
|
| 187 |
+
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.
|
| 188 |
+
For English-Norwegain 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)
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
## Licence
|
| 193 |
+
Norwegian Licence for Open Government Data (NLOD) https://data.norge.no/nlod/en/2.0
|