Skip to main content
Nasjonalbiblioteket

N-grams from NBdigital 2021

Distributions 
1
APIs 
0
No registered APIs provide this dataset.
  • Datasets
  • Public access 

    Publicly available to everyone. Access may still require registration and an API key request, as long as anyone can request such registration and/or API keys.

    Read more about access levels here

  • Open data 

    The dataset is classified as public access and has at least one distribution with an approved open license.

OverviewDistributions & APIs 
1
DetailsDiscussions 
0
RDF

Description

This resource contains n-grams - i.e. unigrams, bigrams and trigrams - from all books and newspapers that had been digitized at the National Library of Norway up to July 2021. The n-grams have been extracted from a material consisting of approximately 580,000 books and 3,400,000 newspapers, amounting to a total of 122 billion tokens (words and punctuation). The n-grams are offered as CSV files (UTF-8-encoded).

Columns in the n-gram CSV files:

  • first - the first word (in uni-, bi- and trigrams)
  • second - the second word (in bi- and trigrams)
  • third - the third word (in trigrams)
  • lang - the language of the n-gram (only regarding books, newspapers have no language classification as for now)
  • freq - the total frequency of the n-gram in the collection of books or newspapers
  • json - a dictionary with raw frequency for each year

totals.json contains aggregated frequencies per year in the book and newspaper corpora. Using these numbers, relative frequencies can be calculated in order to compare frequencies over time as in NB N-gram.

metadata-digibok.csv and metadata-digavis.csv contain simple metadata for the books and newspapers. If you need more extensive metadata, you could use Oria or the APIs at https://api.nb.no/.

See the documentation files for further information.


Similar datasets

SCARRIE LexiconNasjonalbiblioteket
Public access
Grapheme-to-Phoneme Models for NorwegianNasjonalbiblioteket
Public access
Translation Memories from Semantix ASNasjonalbiblioteket
Public access
NST Pronunciation Lexicon for SwedishNasjonalbiblioteket
Public access
Texts from Norwegian WikipediaNasjonalbiblioteket
Public access

Contact information

Contact point:
Not provided
Website:
https://www.nb.no/sprakbanken/
Email:
sprakbanken@nb.no
Telephone:
Not provided

About the data

Language:
, , , , ,
Content providers:
Not provided
Provenance:
Not provided
Update frequency:
Not provided
First issued:

This date indicates when the data in this dataset was first released. It may have happened before the dataset was published on data.norge.no.

June 1, 2021
Last updated:
October 28, 2021
Accuracy:
Not provided
Availability:
Not provided
Completeness:
Not provided
Currentness:
Not provided
Relevance:
Not provided
Geographical scope:
Not provided
Temporal scope:
Not provided
Conforms to:

Reference to an implementation rule or other specification that forms the basis for the dataset.

Not provided

Legal basis

Not provided

Concepts used in the dataset

Not provided

References

Not provided

About this dataset

Publisher:
Nasjonalbiblioteket
Published:

This date indicates when the dataset was harvested by data.norge.no. It may have been available earlier elsewhere.

Read more about harvesting here

March 3, 2026
Last updated:
March 13, 2026
Landing page:
Not provided
Documentation:
Not provided
Dataset type:
Not provided
Metadata Quality:

Metadata quality is an indicator of how well the datasets are described using metadata.

Read more about metadata quality here

Good (59%)
URI:

Themes

Keywords

Not provided

Discussions on Datalandsbyen
0

No discussions found

What is Datalandsbyen?

Datalandsbyen is our online forum where you can request data, share experiences, and ask for advice related to data sharing and information management.