Dataset Viewer
The dataset viewer is not available for this subset.
Job has been terminated due to a temporary spike in resource usage and may be restarted later.

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

NPSC Ortho Morphcoded

This dataset pairs Norwegian Bokmål sentences from NbAiLab/NPSC_orto with output from AltMorph. AltMorph marks allowed morphological or spelling alternatives in square brackets, separated by a vertical bar. Rows without an applicable alternative are retained with identical source and target text.

Fields

Field Meaning
id Original NPSC sentence ID. Only an overlong source row would receive a deterministic part suffix.
source Whitespace-normalized NPSC Bokmål transcript sentence.
target The same sentence encoded by AltMorph.

Example target syntax: [brua|bruen|broa|broen].

Splits

All source rows were pooled before the published split assignment. With random seed 42, 1,000 distinct rows were drawn for validation and another 1,000 distinct rows for test. All remaining rows form train. IDs are disjoint across splits.

Split Rows Rows changed by AltMorph
train 62,541 35,886
validation 1,000 581
test 1,000 563

Length handling

The build uses 200 whitespace-separated words as a practical proxy for a roughly 256-token standard LLM context. An upstream row is preserved as-is when it is within that limit. Only an overlong row is first split on clear sentence-ending punctuation; an individual segment still above the limit is split into fixed word chunks. No row in the pinned source revision exceeded the limit, so every published ID is the original NPSC sentence_id converted to a string.

The maximum source length in this build is 175 words.

Generation

  • Generated: 2026-08-27T20:58:05.189569+00:00
  • NPSC source revision: b6537bebda02239b125a8a415ef75f633f9a8aed
  • AltMorph revision: 41d3adb911d61bb169fd9ccbffd31854d72fd555
  • Language: Bokmål (nob)
  • Tagger: Humit-Oslo/humit-tagger-large at revision 942f2901ec3271c9f627eb6a78b07ade87cf8126
  • Context scorer: north/t5_base_NCC (north-t5)
  • Lexical and inflection data: Ordbank API
  • Total alternative groups: 70,365
  • Total unchanged rows: 27,511

The source metadata was streamed from the pinned Hub revision; no audio was downloaded. Whitespace was normalized before processing. HumIT supplies morphology and part-of-speech analysis. AltMorph queries Ordbank for allowed forms. If an inflection-expanded Ordbank lookup returns a 5xx server response after all API retries, the build tries the authoritative exact-lemma endpoint; network timeouts and non-5xx statuses keep retrying the full lookup. A narrower result is not cached as a complete inflection search.

North-T5 is applied only to candidates where context can change the reading; authoritative linked spelling variants bypass contextual scoring. The Ordbank cache is persistent, and restartable workers write a completed prefix after every batch.

The reproducible build scripts are kept outside the generated dataset directory in dataset_tools/npsc_orto_morphcoded in the AltMorph repository. The local generated workspace is ignored by Git.

Intended use and limitations

The dataset is intended for training or evaluating systems that recognize or generate allowed Norwegian morphological and spelling alternatives. It is silver data: targets are automatically generated and have not been manually verified. They can contain false positives, omit valid alternatives, or include an inflection that is not valid in the sentence context. They should not be treated as claims that every alternative is equally usual in every context. The data preserves all rows, including source-equals-target examples.

Licensing and attribution

The upstream NPSC card describes the parliamentary transcriptions as CC0 and its Hugging Face curation as CC BY-SA 3.0. This derived dataset uses CC BY-SA 3.0 conservatively. Please also follow the citation guidance in the NPSC dataset card and credit:

  • the National Library of Norway / NPSC dataset maintainers;
  • the University of Oslo HumIT team and Humit-Oslo/humit-tagger-large;
  • the University of Bergen Ordbank service;
  • the North-T5 authors and north/t5_base_NCC;
  • the AltMorph authors.
Downloads last month
-