Update README.md
Browse files54 unmodified lines55565754 unmodified lines- split: testpath: data/test-*---54 unmodified lines55565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416554 unmodified lines- split: testpath: data/test-*---# NDLA Parallel Paragraphs## Dataset SummaryThis dataset is derived from articles provided through the [NDLA (Norwegian Digital Learning Arena)](https://ndla.no) API. It consists of aligned paragraph-level translations between Norwegian Bokmål and Norwegian Nynorsk. The data is sourced from educational articles designed for upper secondary education and has been collected via the official [NDLA Article API](https://api.ndla.no/article-api/v2/articles).The dataset is intended for machine translation, language modeling, and linguistic research focused on the Norwegian language. Paragraphs have been aligned between Bokmål and Nynorsk versions of the same article. Basic filtering has been applied to remove malformed or empty entries. The dataset is formatted in JSON Lines (`.jsonl`) and is compatible with Hugging Face's `datasets` library.---## Dataset Structure### Data FieldsEach entry in the dataset is a JSON object with the following fields:- `id`: Unique identifier for the translation pair.- `article_id`: ID of the NDLA article.- `url`: URL to the article via the NDLA API.- `section`: Section of the article (e.g., `article`, `intro`, or `meta`).- `paragraph_index`: Index of the paragraph within the article.- `nb`: Paragraph text in Norwegian Bokmål.- `nn`: Corresponding translation in Norwegian Nynorsk.- `nb_license`: License for the Bokmål paragraph.- `nn_license`: License for the Nynorsk paragraph.- `nb_creators`: Creator metadata for the Bokmål paragraph.- `nn_creators`: Creator metadata for the Nynorsk paragraph.- `article_paragraph_count`: Total number of paragraphs in the article.---### Data Splits| Split | Size ||-------------|----------|| Train | 206,000 || Validation | 1,020 || Test | 1,040 |---## UsageYou can load the dataset using the Hugging Face `datasets` library:```pythonfrom datasets import load_datasetdataset = load_dataset("NbAiLab/ndla_parallel_paragraphs")# Access the training splittrain_data = dataset["train"]# Example: print the first entryprint(train_data[0])```Example output:```json{"id": "nbnn_article_7_0","article_id": 7,"url": "https://api.ndla.no/article-api/v2/articles/7","section": "article","paragraph_index": 0,"nb": "Kvantitativ er et adjektiv som er avledet av substantivet kvantitet...","nn": "Kvantitativ er eit adjektiv som er avleidd av substantivet kvantitet...","nb_license": "CC-BY-SA-4.0","nn_license": "CC-BY-SA-4.0","nb_creators": [{"type": "writer", "name": "Clemens Saers"}],"nn_creators": [{"type": "writer", "name": "Clemens Saers"}],"article_paragraph_count": 14}```---## Intended UseThis dataset is suitable for:- Training and evaluating machine translation models between Norwegian Bokmål and Nynorsk.- Linguistic and educational content analysis.- Language modeling and other NLP tasks involving Norwegian.---## Limitations- Paragraph alignment is based on structural position, not semantic matching — minor mismatches may occur.- Dataset content is educational in nature and may not generalize to informal or non-academic language use.- Some paragraphs may be skipped if empty or malformed in the source data.---## LicenseThis dataset is distributed under the **Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)** license, as per the licensing terms of [NDLA.no](https://ndla.no).---## AcknowledgmentsWe extend our thanks to the [Norwegian Digital Learning Arena (NDLA)](https://ndla.no) for making the article content publicly available via their API.This dataset has been curated and adapted for Hugging Face by **Andre Kåsen** and **Per Egil Kummervold**.
README.md+108