Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,148 +1,227 @@
|
|
| 1 |
-
---
|
| 2 |
-
dataset_info:
|
| 3 |
-
- config_name: 2022-digavis-bigram
|
| 4 |
-
features:
|
| 5 |
-
- name: first
|
| 6 |
-
dtype: string
|
| 7 |
-
- name: second
|
| 8 |
-
dtype: string
|
| 9 |
-
- name: third
|
| 10 |
-
dtype: float64
|
| 11 |
-
- name: lang
|
| 12 |
-
dtype: float64
|
| 13 |
-
- name: year
|
| 14 |
-
dtype: int64
|
| 15 |
-
- name: count
|
| 16 |
-
dtype: int64
|
| 17 |
-
splits:
|
| 18 |
-
- name: train
|
| 19 |
-
num_bytes: 333236587265
|
| 20 |
-
num_examples: 6512311593
|
| 21 |
-
download_size: 14612656071
|
| 22 |
-
dataset_size: 333236587265
|
| 23 |
-
- config_name: 2022-digavis-trigram
|
| 24 |
-
features:
|
| 25 |
-
- name: first
|
| 26 |
-
dtype: string
|
| 27 |
-
- name: second
|
| 28 |
-
dtype: string
|
| 29 |
-
- name: third
|
| 30 |
-
dtype: string
|
| 31 |
-
- name: lang
|
| 32 |
-
dtype: float64
|
| 33 |
-
- name: year
|
| 34 |
-
dtype: int64
|
| 35 |
-
- name: count
|
| 36 |
-
dtype: int64
|
| 37 |
-
splits:
|
| 38 |
-
- name: train
|
| 39 |
-
num_bytes: 246462853849
|
| 40 |
-
num_examples: 5033888977
|
| 41 |
-
download_size: 13693035162
|
| 42 |
-
dataset_size: 246462853849
|
| 43 |
-
- config_name: 2022-digavis-unigram
|
| 44 |
-
features:
|
| 45 |
-
- name: first
|
| 46 |
-
dtype: string
|
| 47 |
-
- name: second
|
| 48 |
-
dtype: float64
|
| 49 |
-
- name: third
|
| 50 |
-
dtype: float64
|
| 51 |
-
- name: lang
|
| 52 |
-
dtype: float64
|
| 53 |
-
- name: year
|
| 54 |
-
dtype: int64
|
| 55 |
-
- name: count
|
| 56 |
-
dtype: int64
|
| 57 |
-
splits:
|
| 58 |
-
- name: train
|
| 59 |
-
num_bytes: 58804597958
|
| 60 |
-
num_examples: 1105162942
|
| 61 |
-
download_size: 2553129989
|
| 62 |
-
dataset_size: 58804597958
|
| 63 |
-
- config_name: 2022-digibok-bigram
|
| 64 |
-
features:
|
| 65 |
-
- name: first
|
| 66 |
-
dtype: string
|
| 67 |
-
- name: second
|
| 68 |
-
dtype: string
|
| 69 |
-
- name: third
|
| 70 |
-
dtype: float64
|
| 71 |
-
- name: lang
|
| 72 |
-
dtype: string
|
| 73 |
-
- name: year
|
| 74 |
-
dtype: int64
|
| 75 |
-
- name: count
|
| 76 |
-
dtype: int64
|
| 77 |
-
splits:
|
| 78 |
-
- name: train
|
| 79 |
-
num_bytes: 153849577631
|
| 80 |
-
num_examples: 3045132754
|
| 81 |
-
download_size: 6719771228
|
| 82 |
-
dataset_size: 153849577631
|
| 83 |
-
- config_name: 2022-digibok-trigram
|
| 84 |
-
features:
|
| 85 |
-
- name: first
|
| 86 |
-
dtype: string
|
| 87 |
-
- name: second
|
| 88 |
-
dtype: string
|
| 89 |
-
- name: third
|
| 90 |
-
dtype: string
|
| 91 |
-
- name: lang
|
| 92 |
-
dtype: string
|
| 93 |
-
- name: year
|
| 94 |
-
dtype: int64
|
| 95 |
-
- name: count
|
| 96 |
-
dtype: int64
|
| 97 |
-
splits:
|
| 98 |
-
- name: train
|
| 99 |
-
num_bytes: 90063218292
|
| 100 |
-
num_examples: 1894490751
|
| 101 |
-
download_size: 4515186829
|
| 102 |
-
dataset_size: 90063218292
|
| 103 |
-
- config_name: 2022-digibok-unigram
|
| 104 |
-
features:
|
| 105 |
-
- name: first
|
| 106 |
-
dtype: string
|
| 107 |
-
- name: second
|
| 108 |
-
dtype: float64
|
| 109 |
-
- name: third
|
| 110 |
-
dtype: float64
|
| 111 |
-
- name: lang
|
| 112 |
-
dtype: string
|
| 113 |
-
- name: year
|
| 114 |
-
dtype: int64
|
| 115 |
-
- name: count
|
| 116 |
-
dtype: int64
|
| 117 |
-
splits:
|
| 118 |
-
- name: train
|
| 119 |
-
num_bytes: 22193315529
|
| 120 |
-
num_examples: 418986743
|
| 121 |
-
download_size: 978036048
|
| 122 |
-
dataset_size: 22193315529
|
| 123 |
-
configs:
|
| 124 |
-
- config_name: 2022-digavis-bigram
|
| 125 |
-
data_files:
|
| 126 |
-
- split: train
|
| 127 |
-
path: 2022-digavis-bigram/train-*
|
| 128 |
-
- config_name: 2022-digavis-trigram
|
| 129 |
-
data_files:
|
| 130 |
-
- split: train
|
| 131 |
-
path: 2022-digavis-trigram/train-*
|
| 132 |
-
- config_name: 2022-digavis-unigram
|
| 133 |
-
data_files:
|
| 134 |
-
- split: train
|
| 135 |
-
path: 2022-digavis-unigram/train-*
|
| 136 |
-
- config_name: 2022-digibok-bigram
|
| 137 |
-
data_files:
|
| 138 |
-
- split: train
|
| 139 |
-
path: 2022-digibok-bigram/train-*
|
| 140 |
-
- config_name: 2022-digibok-trigram
|
| 141 |
-
data_files:
|
| 142 |
-
- split: train
|
| 143 |
-
path: 2022-digibok-trigram/train-*
|
| 144 |
-
- config_name: 2022-digibok-unigram
|
| 145 |
-
data_files:
|
| 146 |
-
- split: train
|
| 147 |
-
path: 2022-digibok-unigram/train-*
|
| 148 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
dataset_info:
|
| 3 |
+
- config_name: 2022-digavis-bigram
|
| 4 |
+
features:
|
| 5 |
+
- name: first
|
| 6 |
+
dtype: string
|
| 7 |
+
- name: second
|
| 8 |
+
dtype: string
|
| 9 |
+
- name: third
|
| 10 |
+
dtype: float64
|
| 11 |
+
- name: lang
|
| 12 |
+
dtype: float64
|
| 13 |
+
- name: year
|
| 14 |
+
dtype: int64
|
| 15 |
+
- name: count
|
| 16 |
+
dtype: int64
|
| 17 |
+
splits:
|
| 18 |
+
- name: train
|
| 19 |
+
num_bytes: 333236587265
|
| 20 |
+
num_examples: 6512311593
|
| 21 |
+
download_size: 14612656071
|
| 22 |
+
dataset_size: 333236587265
|
| 23 |
+
- config_name: 2022-digavis-trigram
|
| 24 |
+
features:
|
| 25 |
+
- name: first
|
| 26 |
+
dtype: string
|
| 27 |
+
- name: second
|
| 28 |
+
dtype: string
|
| 29 |
+
- name: third
|
| 30 |
+
dtype: string
|
| 31 |
+
- name: lang
|
| 32 |
+
dtype: float64
|
| 33 |
+
- name: year
|
| 34 |
+
dtype: int64
|
| 35 |
+
- name: count
|
| 36 |
+
dtype: int64
|
| 37 |
+
splits:
|
| 38 |
+
- name: train
|
| 39 |
+
num_bytes: 246462853849
|
| 40 |
+
num_examples: 5033888977
|
| 41 |
+
download_size: 13693035162
|
| 42 |
+
dataset_size: 246462853849
|
| 43 |
+
- config_name: 2022-digavis-unigram
|
| 44 |
+
features:
|
| 45 |
+
- name: first
|
| 46 |
+
dtype: string
|
| 47 |
+
- name: second
|
| 48 |
+
dtype: float64
|
| 49 |
+
- name: third
|
| 50 |
+
dtype: float64
|
| 51 |
+
- name: lang
|
| 52 |
+
dtype: float64
|
| 53 |
+
- name: year
|
| 54 |
+
dtype: int64
|
| 55 |
+
- name: count
|
| 56 |
+
dtype: int64
|
| 57 |
+
splits:
|
| 58 |
+
- name: train
|
| 59 |
+
num_bytes: 58804597958
|
| 60 |
+
num_examples: 1105162942
|
| 61 |
+
download_size: 2553129989
|
| 62 |
+
dataset_size: 58804597958
|
| 63 |
+
- config_name: 2022-digibok-bigram
|
| 64 |
+
features:
|
| 65 |
+
- name: first
|
| 66 |
+
dtype: string
|
| 67 |
+
- name: second
|
| 68 |
+
dtype: string
|
| 69 |
+
- name: third
|
| 70 |
+
dtype: float64
|
| 71 |
+
- name: lang
|
| 72 |
+
dtype: string
|
| 73 |
+
- name: year
|
| 74 |
+
dtype: int64
|
| 75 |
+
- name: count
|
| 76 |
+
dtype: int64
|
| 77 |
+
splits:
|
| 78 |
+
- name: train
|
| 79 |
+
num_bytes: 153849577631
|
| 80 |
+
num_examples: 3045132754
|
| 81 |
+
download_size: 6719771228
|
| 82 |
+
dataset_size: 153849577631
|
| 83 |
+
- config_name: 2022-digibok-trigram
|
| 84 |
+
features:
|
| 85 |
+
- name: first
|
| 86 |
+
dtype: string
|
| 87 |
+
- name: second
|
| 88 |
+
dtype: string
|
| 89 |
+
- name: third
|
| 90 |
+
dtype: string
|
| 91 |
+
- name: lang
|
| 92 |
+
dtype: string
|
| 93 |
+
- name: year
|
| 94 |
+
dtype: int64
|
| 95 |
+
- name: count
|
| 96 |
+
dtype: int64
|
| 97 |
+
splits:
|
| 98 |
+
- name: train
|
| 99 |
+
num_bytes: 90063218292
|
| 100 |
+
num_examples: 1894490751
|
| 101 |
+
download_size: 4515186829
|
| 102 |
+
dataset_size: 90063218292
|
| 103 |
+
- config_name: 2022-digibok-unigram
|
| 104 |
+
features:
|
| 105 |
+
- name: first
|
| 106 |
+
dtype: string
|
| 107 |
+
- name: second
|
| 108 |
+
dtype: float64
|
| 109 |
+
- name: third
|
| 110 |
+
dtype: float64
|
| 111 |
+
- name: lang
|
| 112 |
+
dtype: string
|
| 113 |
+
- name: year
|
| 114 |
+
dtype: int64
|
| 115 |
+
- name: count
|
| 116 |
+
dtype: int64
|
| 117 |
+
splits:
|
| 118 |
+
- name: train
|
| 119 |
+
num_bytes: 22193315529
|
| 120 |
+
num_examples: 418986743
|
| 121 |
+
download_size: 978036048
|
| 122 |
+
dataset_size: 22193315529
|
| 123 |
+
configs:
|
| 124 |
+
- config_name: 2022-digavis-bigram
|
| 125 |
+
data_files:
|
| 126 |
+
- split: train
|
| 127 |
+
path: 2022-digavis-bigram/train-*
|
| 128 |
+
- config_name: 2022-digavis-trigram
|
| 129 |
+
data_files:
|
| 130 |
+
- split: train
|
| 131 |
+
path: 2022-digavis-trigram/train-*
|
| 132 |
+
- config_name: 2022-digavis-unigram
|
| 133 |
+
data_files:
|
| 134 |
+
- split: train
|
| 135 |
+
path: 2022-digavis-unigram/train-*
|
| 136 |
+
- config_name: 2022-digibok-bigram
|
| 137 |
+
data_files:
|
| 138 |
+
- split: train
|
| 139 |
+
path: 2022-digibok-bigram/train-*
|
| 140 |
+
- config_name: 2022-digibok-trigram
|
| 141 |
+
data_files:
|
| 142 |
+
- split: train
|
| 143 |
+
path: 2022-digibok-trigram/train-*
|
| 144 |
+
- config_name: 2022-digibok-unigram
|
| 145 |
+
data_files:
|
| 146 |
+
- split: train
|
| 147 |
+
path: 2022-digibok-unigram/train-*
|
| 148 |
+
license: cc0-1.0
|
| 149 |
+
language:
|
| 150 |
+
- nn
|
| 151 |
+
- nb
|
| 152 |
+
---
|
| 153 |
+
|
| 154 |
+
# Dataset Card for N-grams from NBdigital
|
| 155 |
+
|
| 156 |
+
This dataset contains n-grams (uni-, bi- and trigrams) from all books and newspapers digitized by the National Library of Norway before 2022-07-15.
|
| 157 |
+
The N-grams are made based on approximately 610 000 books and 4 000 000 newspapers.
|
| 158 |
+
In total, it's about 138.5 billion "tokens" (i.e. words and punctuation).
|
| 159 |
+
|
| 160 |
+
## Dataset Details
|
| 161 |
+
|
| 162 |
+
### Dataset Description
|
| 163 |
+
|
| 164 |
+
This dataset contains frequency information on word and punctuation usage in Norwegian.
|
| 165 |
+
In particular, it contains uni- bi and trigram counts for each year.
|
| 166 |
+
|
| 167 |
+
- **Curated by:** [The Norwegian Language Bank](https://www.nb.no/sprakbanken/en/) at [the National Library of Norway](https://www.nb.no/)
|
| 168 |
+
- **Shared by:** [The Norwegian Language Bank](https://www.nb.no/sprakbanken/en/) at [the National Library of Norway](https://www.nb.no/)
|
| 169 |
+
- **Language(s) (NLP):** nob, nno
|
| 170 |
+
- **License:** CC-0
|
| 171 |
+
|
| 172 |
+
### Dataset Sources
|
| 173 |
+
|
| 174 |
+
- **Source dataset:** https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-76/
|
| 175 |
+
- **Paper:** Birkenes MB, Johnsen LG, Lindstad AM, Ostad J. From digital library to n-grams: NB N-gram. InProceedings of the 20th Nordic Conference of Computational Linguistics (NODALIDA 2015) 2015 May (pp. 293-295).
|
| 176 |
+
- **Demo:** https://dh.nb.no/run/corpus-webapp/app/
|
| 177 |
+
|
| 178 |
+
## Dataset Structure
|
| 179 |
+
|
| 180 |
+
The N-gram dataset is separated into several subsets for different corpora (`digavis` and `digibok`). The `digavis` dataset contains N-gram counts from newspapers and the `digibok` datasets contains N-gram counts from books. Moreover, the dataset contains the following fields:
|
| 181 |
+
|
| 182 |
+
* `first`: The first token in the N-gram
|
| 183 |
+
* `second` (optional): The second token in the N-gram (for bi- and trigrams)
|
| 184 |
+
* `third` (optional): The third token in the N-gram (for trigrams)
|
| 185 |
+
* `lang` (optional): The language of the documents the N-grams are counted from (only for `digibok`)
|
| 186 |
+
* `year`: The year
|
| 187 |
+
* `count`: The number of times the given N-gram occures in the given year
|
| 188 |
+
|
| 189 |
+
For example, in the `2022-digavis-unigram` dataset, we have the row
|
| 190 |
+
|
| 191 |
+
```raw
|
| 192 |
+
first="hei", year=1972, count=4460
|
| 193 |
+
```
|
| 194 |
+
|
| 195 |
+
This means that the word "hei" occured 4460 times in the National Library of Norway's digitized newspapers from 1972.
|
| 196 |
+
Similarly, if we consider the row
|
| 197 |
+
|
| 198 |
+
```raw
|
| 199 |
+
first="hei", second="til", lang="nob", year=1990, count=60
|
| 200 |
+
```
|
| 201 |
+
|
| 202 |
+
in the `2022-digibok-trigram` dataset, then that means that the phrase "hei til" occured 60 times in the National Library of Norway's digitized books in Norwegian Bokmål from 1990.
|
| 203 |
+
|
| 204 |
+
## Dataset Creation
|
| 205 |
+
|
| 206 |
+
This data stems from all books and newspapers in the National Library of Norway's digitized collection, which consists of almost all books and newspapers published in Norway.
|
| 207 |
+
Note that much of the text stems from automatic text recognition of scanned book and newspaper pages, which may contain mistakes.
|
| 208 |
+
|
| 209 |
+
## Citation
|
| 210 |
+
|
| 211 |
+
**BibTeX:**
|
| 212 |
+
|
| 213 |
+
```bibtex
|
| 214 |
+
@inproceedings{birkenes2015digital,
|
| 215 |
+
title={From digital library to n-grams: NB N-gram},
|
| 216 |
+
author={Birkenes, Magnus Breder and Johnsen, Lars G and Lindstad, Arne Martinus and Ostad, Johanne},
|
| 217 |
+
booktitle={Proceedings of the 20th Nordic Conference of Computational Linguistics (NODALIDA 2015)},
|
| 218 |
+
pages={293--295},
|
| 219 |
+
year={2015}
|
| 220 |
+
}
|
| 221 |
+
```
|
| 222 |
+
|
| 223 |
+
## Dataset Card Contact
|
| 224 |
+
|
| 225 |
+
```
|
| 226 |
+
sprakbanken [at] nb [dot] no
|
| 227 |
+
```
|