V4ldeLund gustavidun commited on
Commit
264ae6f
·
1 Parent(s): 2ed5aaa

- squashed commits to ensure 'tokens_over_time' plot renders correctly (no dip) (b8551650781f3d5f9e235db1b2b2f687fbca7f70)
- cleaned up create.py (fb9fd93b1b08f318aad1ff63e014459ffcfeb16b)
- fixed 'tokens_over_time' image (38d97dc8f2706c81ffebfb0c3e81679860618748)
- adressed comments (cd3e9e94fc2ee4696bb83630f06d4b72a85ad7c6)


Co-authored-by: Gustav Idun Sloth <gustavidun@users.noreply.huggingface.co>

CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
 
6
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
7
 
 
 
 
 
 
8
 
9
  ## [v0.0.6] - 2026-05-30
10
 
 
5
 
6
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
7
 
8
+ ## [v0.0.7] - 2026-06-21
9
+
10
+ ### Added
11
+
12
+ - Added the `cellar` dataset.
13
 
14
  ## [v0.0.6] - 2026-05-30
15
 
README.md CHANGED
@@ -85,6 +85,10 @@ configs:
85
  data_files:
86
  - split: train
87
  path: data/riksdagen-protokoll/*.parquet
 
 
 
 
88
  language_bcp47:
89
  - swe
90
  ---
@@ -95,7 +99,7 @@ language_bcp47:
95
  <!-- START README TABLE -->
96
  | | |
97
  | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
98
- | **Version** | 0.0.6 ([Changelog](/CHANGELOG.md)) |
99
  | **Language** | Swedish (sv, swe) |
100
  | **License** | Openly Licensed, See the respective dataset |
101
  | **Models** | Currently there is no models trained on this dataset |
@@ -134,9 +138,9 @@ language_bcp47:
134
  ## Dataset Description
135
 
136
  <!-- START-DESC-STATS -->
137
- - **Number of samples**: 187.17K
138
- - **Number of tokens (Llama 3)**: 3.21B
139
- - **Average document length in tokens (min, max)**: 17.17K (21, 4.06M)
140
  <!-- END-DESC-STATS -->
141
 
142
 
@@ -186,10 +190,10 @@ In addition it likely contains small amounts of English due to code-switching an
186
  Language is denoted using [BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag), using the langauge code ISO [639-3](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) and the script code [ISO 15924](https://en.wikipedia.org/wiki/ISO_15924).
187
 
188
  <!-- START-LANGUAGE TABLE -->
189
- | Language | Sources | N. Tokens |
190
- |:-----------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------|
191
- | sv | [dalpilen-1860], [lag1800], [svensk-tidskrift], [statens-offentliga-utredningar], [biblioteksbladet], [riksdagen-forfattningssamling], [riksdagen-reglementen], [riksdagen-register], [riksdagen-skrivelser], [riksdagen-utredningar], [riksdagen-berattelser], [riksdagen-motioner], [riksdagen-betankanden], [riksdagen-propositioner], [riksdagen-protokoll] | 3.21B |
192
- | **Total** | | 3.21B |
193
 
194
  [dalpilen-1860]: data/dalpilen-1860/dalpilen-1860.md
195
  [lag1800]: data/lag1800/lag1800.md
@@ -206,6 +210,7 @@ Language is denoted using [BCP-47](https://en.wikipedia.org/wiki/IETF_language_t
206
  [riksdagen-betankanden]: data/riksdagen-betankanden/riksdagen-betankanden.md
207
  [riksdagen-propositioner]: data/riksdagen-propositioner/riksdagen-propositioner.md
208
  [riksdagen-protokoll]: data/riksdagen-protokoll/riksdagen-protokoll.md
 
209
  <!-- END-LANGUAGE TABLE -->
210
 
211
  ### Domains
@@ -220,10 +225,10 @@ This dynaword consist of data from various domains (e.g., legal, books, social m
220
  <!-- START-DOMAIN TABLE -->
221
  | Domain | Sources | N. Tokens |
222
  |:----------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------|
 
223
  | Report | [statens-offentliga-utredningar], [riksdagen-register], [riksdagen-skrivelser], [riksdagen-utredningar], [riksdagen-berattelser], [riksdagen-motioner], [riksdagen-betankanden], [riksdagen-propositioner], [riksdagen-protokoll] | 3.17B |
224
  | News | [dalpilen-1860], [svensk-tidskrift], [biblioteksbladet] | 40.12M |
225
- | Legal | [lag1800], [riksdagen-forfattningssamling], [riksdagen-reglementen] | 6.79M |
226
- | **Total** | | 3.21B |
227
 
228
  [dalpilen-1860]: data/dalpilen-1860/dalpilen-1860.md
229
  [lag1800]: data/lag1800/lag1800.md
@@ -240,6 +245,7 @@ This dynaword consist of data from various domains (e.g., legal, books, social m
240
  [riksdagen-betankanden]: data/riksdagen-betankanden/riksdagen-betankanden.md
241
  [riksdagen-propositioner]: data/riksdagen-propositioner/riksdagen-propositioner.md
242
  [riksdagen-protokoll]: data/riksdagen-protokoll/riksdagen-protokoll.md
 
243
  <!-- END-DOMAIN TABLE -->
244
 
245
  </div>
@@ -261,10 +267,11 @@ The following gives an overview of the licensing in the Dynaword. To get the exa
261
  These license is applied to the constituent data, i.e., the text. The collection of datasets (metadata, quality control, etc.) is licensed under [CC-0](https://creativecommons.org/publicdomain/zero/1.0/legalcode.en).
262
 
263
  <!-- START-LICENSE TABLE -->
264
- | License | Sources | N. Tokens |
265
- |:----------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------|
266
- | CC-BY 4.0 | [dalpilen-1860], [lag1800], [svensk-tidskrift], [statens-offentliga-utredningar], [biblioteksbladet], [riksdagen-forfattningssamling], [riksdagen-reglementen], [riksdagen-register], [riksdagen-skrivelser], [riksdagen-utredningar], [riksdagen-berattelser], [riksdagen-motioner], [riksdagen-betankanden], [riksdagen-propositioner], [riksdagen-protokoll] | 3.21B |
267
- | **Total** | | 3.21B |
 
268
 
269
  [dalpilen-1860]: data/dalpilen-1860/dalpilen-1860.md
270
  [lag1800]: data/lag1800/lag1800.md
@@ -281,6 +288,7 @@ These license is applied to the constituent data, i.e., the text. The collection
281
  [riksdagen-betankanden]: data/riksdagen-betankanden/riksdagen-betankanden.md
282
  [riksdagen-propositioner]: data/riksdagen-propositioner/riksdagen-propositioner.md
283
  [riksdagen-protokoll]: data/riksdagen-protokoll/riksdagen-protokoll.md
 
284
  <!-- END-LICENSE TABLE -->
285
 
286
 
@@ -296,12 +304,12 @@ Each entry in the dataset consists of a single text with associated metadata
296
  <!-- START-SAMPLE -->
297
  ```py
298
  {
299
- "id": "riksdagen-utredningar_000001",
300
- "text": "BETÄNKANDE DEN FÖR VERKSTÄLLANDE AF UTREDNING OCH AFGIFVANDE AF FÖRSLAG RÖRANDE FÖRÄNDRAD ORGANISATI[...]",
301
- "source": "riksdagen-utredningar",
302
  "added": "2026-05-29",
303
- "created": "1911-01-01, 1911-12-31",
304
- "token_count": 160883
305
  }
306
  ```
307
 
@@ -343,24 +351,25 @@ Below follows a brief overview of the sources in the corpus along with their ind
343
  You can learn more about each dataset by pressing the link in the first column.
344
 
345
  <!-- START-MAIN TABLE -->
346
- | Source | Description | Domain | N. Tokens | License |
347
- |:---------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------|:------------|:------------|
348
- | [statens-offentliga-utredningar] | Historical Swedish government investigation reports ([*Statens offentliga utredningar*](https://spraakbanken.gu.se/en/resources/sou)) from 1922 to 1996 | Report | 909.69M | [CC-BY 4.0] |
349
- | [riksdagen-propositioner] | Swedish government bills and parliamentary letters from Språkbanken Text's [Bicameral riksdag: Propositions and letters](https://spraakbanken.gu.se/en/resources/tkr-propositioner-skrivelser) | Report | 699.11M | [CC-BY 4.0] |
350
- | [riksdagen-protokoll] | Swedish parliamentary debate protocols from Språkbanken Text's [Bicameral riksdag: Protocols](https://spraakbanken.gu.se/en/resources/tkr-protokoll) | Report | 624.22M | [CC-BY 4.0] |
351
- | [riksdagen-betankanden] | Swedish parliamentary committee reports, memorandums and opinions from Språkbanken Text's [Bicameral riksdag: Reports, memorandums and opinions](https://spraakbanken.gu.se/en/resources/tkr-bet-mem-utl) | Report | 423.50M | [CC-BY 4.0] |
352
- | [riksdagen-motioner] | Swedish parliamentary motions from Språkbanken Text's [Bicameral riksdag: Motions](https://spraakbanken.gu.se/en/resources/tkr-motioner) | Report | 149.83M | [CC-BY 4.0] |
353
- | [riksdagen-berattelser] | Swedish parliamentary narratives and accounts from Språkbanken Text's [Bicameral riksdag: Narratives and accounts](https://spraakbanken.gu.se/en/resources/tkr-berattelser-redogorelser-frsrdg) | Report | 129.77M | [CC-BY 4.0] |
354
- | [riksdagen-utredningar] | Swedish parliamentary government investigation texts from Språkbanken Text's [Bicameral riksdag: Government official investigations](https://spraakbanken.gu.se/en/resources/tkr-utredningar-kombet-sou) | Report | 125.48M | [CC-BY 4.0] |
355
- | [riksdagen-skrivelser] | Swedish parliamentary letters and communications from Språkbanken Text's [Bicameral riksdag: Letters of the Riksdag](https://spraakbanken.gu.se/en/resources/tkr-rskr) | Report | 61.79M | [CC-BY 4.0] |
356
- | [riksdagen-register] | Swedish parliamentary register texts from Språkbanken Text's [Bicameral riksdag: Register](https://spraakbanken.gu.se/en/resources/tkr-register) | Report | 44.16M | [CC-BY 4.0] |
357
- | [dalpilen-1860] | Historical Swedish newspaper issues from Språkbanken Text's [Dalpilen 1860's](https://spraakbanken.gu.se/en/resources/kubhist2-dalpilen-1860) | News | 17.51M | [CC-BY 4.0] |
358
- | [svensk-tidskrift] | Historical Swedish conservative journal ([*Svensk Tidskrift*](https://spraakbanken.gu.se/en/resources/runeberg-svtidskr)) covering 27 annual volumes from 1891 to 1940 | News | 13.89M | [CC-BY 4.0] |
359
- | [biblioteksbladet] | Early volumes of the Swedish library journal *Biblioteksbladet* (1916–1940) | News | 8.71M | [CC-BY 4.0] |
360
- | [riksdagen-reglementen] | Swedish parliamentary regulations from Språkbanken Text's [Bicameral riksdag: Regulations](https://spraakbanken.gu.se/en/resources/tkr-reglementen-sfs) | Legal | 5.69M | [CC-BY 4.0] |
361
- | [lag1800] | Historical Swedish legal texts from Språkbanken Text's [Laws from the 1800's](https://spraakbanken.gu.se/en/resources/lag1800) | Legal | 921.60K | [CC-BY 4.0] |
362
- | [riksdagen-forfattningssamling] | Swedish parliamentary constitutional texts from Språkbanken Text's [Bicameral riksdag: The constitution of the Riksdag](https://spraakbanken.gu.se/en/resources/tkr-riksdagens-forfattningssamling-rfs) | Legal | 185.96K | [CC-BY 4.0] |
363
- | **Total** | | | 3.21B | |
 
364
 
365
  [dalpilen-1860]: data/dalpilen-1860/dalpilen-1860.md
366
  [lag1800]: data/lag1800/lag1800.md
@@ -377,6 +386,7 @@ You can learn more about each dataset by pressing the link in the first column.
377
  [riksdagen-betankanden]: data/riksdagen-betankanden/riksdagen-betankanden.md
378
  [riksdagen-propositioner]: data/riksdagen-propositioner/riksdagen-propositioner.md
379
  [riksdagen-protokoll]: data/riksdagen-protokoll/riksdagen-protokoll.md
 
380
 
381
 
382
  [CC-0]: https://creativecommons.org/publicdomain/zero/1.0/legalcode.en
 
85
  data_files:
86
  - split: train
87
  path: data/riksdagen-protokoll/*.parquet
88
+ - config_name: cellar
89
+ data_files:
90
+ - split: train
91
+ path: data/cellar/*.parquet
92
  language_bcp47:
93
  - swe
94
  ---
 
99
  <!-- START README TABLE -->
100
  | | |
101
  | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
102
+ | **Version** | 0.0.7 ([Changelog](/CHANGELOG.md)) |
103
  | **Language** | Swedish (sv, swe) |
104
  | **License** | Openly Licensed, See the respective dataset |
105
  | **Models** | Currently there is no models trained on this dataset |
 
138
  ## Dataset Description
139
 
140
  <!-- START-DESC-STATS -->
141
+ - **Number of samples**: 606.51K
142
+ - **Number of tokens (Llama 3)**: 7.94B
143
+ - **Average document length in tokens (min, max)**: 13.10K (3, 8.14M)
144
  <!-- END-DESC-STATS -->
145
 
146
 
 
190
  Language is denoted using [BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag), using the langauge code ISO [639-3](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) and the script code [ISO 15924](https://en.wikipedia.org/wiki/ISO_15924).
191
 
192
  <!-- START-LANGUAGE TABLE -->
193
+ | Language | Sources | N. Tokens |
194
+ |:-----------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------|
195
+ | sv | [dalpilen-1860], [lag1800], [svensk-tidskrift], [statens-offentliga-utredningar], [biblioteksbladet], [riksdagen-forfattningssamling], [riksdagen-reglementen], [riksdagen-register], [riksdagen-skrivelser], [riksdagen-utredningar], [riksdagen-berattelser], [riksdagen-motioner], [riksdagen-betankanden], [riksdagen-propositioner], [riksdagen-protokoll], [cellar] | 7.94B |
196
+ | **Total** | | 7.94B |
197
 
198
  [dalpilen-1860]: data/dalpilen-1860/dalpilen-1860.md
199
  [lag1800]: data/lag1800/lag1800.md
 
210
  [riksdagen-betankanden]: data/riksdagen-betankanden/riksdagen-betankanden.md
211
  [riksdagen-propositioner]: data/riksdagen-propositioner/riksdagen-propositioner.md
212
  [riksdagen-protokoll]: data/riksdagen-protokoll/riksdagen-protokoll.md
213
+ [cellar]: data/cellar/cellar.md
214
  <!-- END-LANGUAGE TABLE -->
215
 
216
  ### Domains
 
225
  <!-- START-DOMAIN TABLE -->
226
  | Domain | Sources | N. Tokens |
227
  |:----------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------|
228
+ | Legal | [lag1800], [riksdagen-forfattningssamling], [riksdagen-reglementen], [cellar] | 4.74B |
229
  | Report | [statens-offentliga-utredningar], [riksdagen-register], [riksdagen-skrivelser], [riksdagen-utredningar], [riksdagen-berattelser], [riksdagen-motioner], [riksdagen-betankanden], [riksdagen-propositioner], [riksdagen-protokoll] | 3.17B |
230
  | News | [dalpilen-1860], [svensk-tidskrift], [biblioteksbladet] | 40.12M |
231
+ | **Total** | | 7.94B |
 
232
 
233
  [dalpilen-1860]: data/dalpilen-1860/dalpilen-1860.md
234
  [lag1800]: data/lag1800/lag1800.md
 
245
  [riksdagen-betankanden]: data/riksdagen-betankanden/riksdagen-betankanden.md
246
  [riksdagen-propositioner]: data/riksdagen-propositioner/riksdagen-propositioner.md
247
  [riksdagen-protokoll]: data/riksdagen-protokoll/riksdagen-protokoll.md
248
+ [cellar]: data/cellar/cellar.md
249
  <!-- END-DOMAIN TABLE -->
250
 
251
  </div>
 
267
  These license is applied to the constituent data, i.e., the text. The collection of datasets (metadata, quality control, etc.) is licensed under [CC-0](https://creativecommons.org/publicdomain/zero/1.0/legalcode.en).
268
 
269
  <!-- START-LICENSE TABLE -->
270
+ | License | Sources | N. Tokens |
271
+ |:-------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------|
272
+ | CC-BY-SA 4.0 | [cellar] | 4.73B |
273
+ | CC-BY 4.0 | [dalpilen-1860], [lag1800], [svensk-tidskrift], [statens-offentliga-utredningar], [biblioteksbladet], [riksdagen-forfattningssamling], [riksdagen-reglementen], [riksdagen-register], [riksdagen-skrivelser], [riksdagen-utredningar], [riksdagen-berattelser], [riksdagen-motioner], [riksdagen-betankanden], [riksdagen-propositioner], [riksdagen-protokoll] | 3.21B |
274
+ | **Total** | | 7.94B |
275
 
276
  [dalpilen-1860]: data/dalpilen-1860/dalpilen-1860.md
277
  [lag1800]: data/lag1800/lag1800.md
 
288
  [riksdagen-betankanden]: data/riksdagen-betankanden/riksdagen-betankanden.md
289
  [riksdagen-propositioner]: data/riksdagen-propositioner/riksdagen-propositioner.md
290
  [riksdagen-protokoll]: data/riksdagen-protokoll/riksdagen-protokoll.md
291
+ [cellar]: data/cellar/cellar.md
292
  <!-- END-LICENSE TABLE -->
293
 
294
 
 
304
  <!-- START-SAMPLE -->
305
  ```py
306
  {
307
+ "id": "biblioteksbladet_0001",
308
+ "text": "BIBLIOTEKSBLADET\n\nORGAN FÖR SVERIGES ALLMÄNNA BIBLIOTEKSFÖRENING\n\nREDAKTION:\n\nFREDRIK HJELMQVIST och[...]",
309
+ "source": "biblioteksbladet",
310
  "added": "2026-05-29",
311
+ "created": "1916-01-01, 1916-12-31",
312
+ "token_count": 271328
313
  }
314
  ```
315
 
 
351
  You can learn more about each dataset by pressing the link in the first column.
352
 
353
  <!-- START-MAIN TABLE -->
354
+ | Source | Description | Domain | N. Tokens | License |
355
+ |:---------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------|:------------|:---------------|
356
+ | [cellar] | The official digital repository for European Union legal documents and open data | Legal | 4.73B | [CC-BY-SA 4.0] |
357
+ | [statens-offentliga-utredningar] | Historical Swedish government investigation reports ([*Statens offentliga utredningar*](https://spraakbanken.gu.se/en/resources/sou)) from 1922 to 1996 | Report | 909.69M | [CC-BY 4.0] |
358
+ | [riksdagen-propositioner] | Swedish government bills and parliamentary letters from Språkbanken Text's [Bicameral riksdag: Propositions and letters](https://spraakbanken.gu.se/en/resources/tkr-propositioner-skrivelser) | Report | 699.11M | [CC-BY 4.0] |
359
+ | [riksdagen-protokoll] | Swedish parliamentary debate protocols from Språkbanken Text's [Bicameral riksdag: Protocols](https://spraakbanken.gu.se/en/resources/tkr-protokoll) | Report | 624.22M | [CC-BY 4.0] |
360
+ | [riksdagen-betankanden] | Swedish parliamentary committee reports, memorandums and opinions from Språkbanken Text's [Bicameral riksdag: Reports, memorandums and opinions](https://spraakbanken.gu.se/en/resources/tkr-bet-mem-utl) | Report | 423.50M | [CC-BY 4.0] |
361
+ | [riksdagen-motioner] | Swedish parliamentary motions from Språkbanken Text's [Bicameral riksdag: Motions](https://spraakbanken.gu.se/en/resources/tkr-motioner) | Report | 149.83M | [CC-BY 4.0] |
362
+ | [riksdagen-berattelser] | Swedish parliamentary narratives and accounts from Språkbanken Text's [Bicameral riksdag: Narratives and accounts](https://spraakbanken.gu.se/en/resources/tkr-berattelser-redogorelser-frsrdg) | Report | 129.77M | [CC-BY 4.0] |
363
+ | [riksdagen-utredningar] | Swedish parliamentary government investigation texts from Språkbanken Text's [Bicameral riksdag: Government official investigations](https://spraakbanken.gu.se/en/resources/tkr-utredningar-kombet-sou) | Report | 125.48M | [CC-BY 4.0] |
364
+ | [riksdagen-skrivelser] | Swedish parliamentary letters and communications from Språkbanken Text's [Bicameral riksdag: Letters of the Riksdag](https://spraakbanken.gu.se/en/resources/tkr-rskr) | Report | 61.79M | [CC-BY 4.0] |
365
+ | [riksdagen-register] | Swedish parliamentary register texts from Språkbanken Text's [Bicameral riksdag: Register](https://spraakbanken.gu.se/en/resources/tkr-register) | Report | 44.16M | [CC-BY 4.0] |
366
+ | [dalpilen-1860] | Historical Swedish newspaper issues from Språkbanken Text's [Dalpilen 1860's](https://spraakbanken.gu.se/en/resources/kubhist2-dalpilen-1860) | News | 17.51M | [CC-BY 4.0] |
367
+ | [svensk-tidskrift] | Historical Swedish conservative journal ([*Svensk Tidskrift*](https://spraakbanken.gu.se/en/resources/runeberg-svtidskr)) covering 27 annual volumes from 1891 to 1940 | News | 13.89M | [CC-BY 4.0] |
368
+ | [biblioteksbladet] | Early volumes of the Swedish library journal *Biblioteksbladet* (1916–1940) | News | 8.71M | [CC-BY 4.0] |
369
+ | [riksdagen-reglementen] | Swedish parliamentary regulations from Språkbanken Text's [Bicameral riksdag: Regulations](https://spraakbanken.gu.se/en/resources/tkr-reglementen-sfs) | Legal | 5.69M | [CC-BY 4.0] |
370
+ | [lag1800] | Historical Swedish legal texts from Språkbanken Text's [Laws from the 1800's](https://spraakbanken.gu.se/en/resources/lag1800) | Legal | 921.60K | [CC-BY 4.0] |
371
+ | [riksdagen-forfattningssamling] | Swedish parliamentary constitutional texts from Språkbanken Text's [Bicameral riksdag: The constitution of the Riksdag](https://spraakbanken.gu.se/en/resources/tkr-riksdagens-forfattningssamling-rfs) | Legal | 185.96K | [CC-BY 4.0] |
372
+ | **Total** | | | 7.94B | |
373
 
374
  [dalpilen-1860]: data/dalpilen-1860/dalpilen-1860.md
375
  [lag1800]: data/lag1800/lag1800.md
 
386
  [riksdagen-betankanden]: data/riksdagen-betankanden/riksdagen-betankanden.md
387
  [riksdagen-propositioner]: data/riksdagen-propositioner/riksdagen-propositioner.md
388
  [riksdagen-protokoll]: data/riksdagen-protokoll/riksdagen-protokoll.md
389
+ [cellar]: data/cellar/cellar.md
390
 
391
 
392
  [CC-0]: https://creativecommons.org/publicdomain/zero/1.0/legalcode.en
data/cellar/.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ extracted/
2
+ out/
3
+ swedish_metadata/
data/cellar/cellar.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Cellar
3
+ language:
4
+ - sv
5
+ license: cc-by-sa-4.0
6
+ license_name: CC-BY-SA 4.0
7
+ task_categories:
8
+ - text-generation
9
+ - fill-mask
10
+ task_ids:
11
+ - language-modeling
12
+ domains:
13
+ - Legal
14
+ ---
15
+
16
+ # Dataset Card for Cellar
17
+
18
+ <!-- START-SHORT DESCRIPTION -->
19
+ The official digital repository for European Union legal documents and open data.
20
+ <!-- END-SHORT DESCRIPTION -->
21
+
22
+ The EU Dataset [Cellar](https://op.europa.eu/en/web/cellar/home) serves as the central access point for all official EU publications, legislation, and open data resources. Maintained by the Publications Office of the European Union, this comprehensive digital archive contains millions of documents in multiple languages, including regulations, directives, decisions, treaties, case law, and preparatory acts dating back decades. The repository employs standardized metadata and unique identifiers to organize its vast collection, making it an essential resource for researchers, legal professionals, policymakers, and citizens seeking authoritative information on EU law and policy. The Cellar's linked data architecture also enables sophisticated search capabilities and integration with other information systems across the European Union's digital landscape.
23
+
24
+
25
+ ## Dataset Description
26
+
27
+ <!-- START-DESC-STATS -->
28
+ - **Number of samples**: 419.34K
29
+ - **Number of tokens (Llama 3)**: 4.73B
30
+ - **Average document length in tokens (min, max)**: 11.28K (3, 8.14M)
31
+ <!-- END-DESC-STATS -->
32
+
33
+
34
+ ## Dataset Structure
35
+ An example from the dataset looks as follows.
36
+
37
+
38
+ <!-- START-SAMPLE -->
39
+ ```py
40
+ {
41
+ "id": "cellar_1127769",
42
+ "text": "- ISSN 1977-0820\n- Europeiska unionensofficiella tidning L 221\n- Svensk utgåva Lagstiftning 63 årgån[...]",
43
+ "source": "cellar",
44
+ "added": "2026-07-09",
45
+ "created": "2020-07-10, 2020-07-10",
46
+ "token_count": 153759
47
+ }
48
+ ```
49
+
50
+ ### Data Fields
51
+
52
+ An entry in the dataset consists of the following fields:
53
+
54
+ - `id` (`str`): A unique identifier for each document.
55
+ - `text` (`str`): The content of the document.
56
+ - `source` (`str`): The source of the document (see [Source Data](#source-data)).
57
+ - `added` (`str`): The date when the document was added to this collection.
58
+ - `created` (`str`): The date range when the document was originally created.
59
+ - `token_count` (`int`): The number of tokens in the sample computed using the Llama 3 tokenizer.
60
+ <!-- END-SAMPLE -->
61
+
62
+
63
+ ### Dataset Statistics
64
+
65
+ <!-- START-DATASET PLOTS -->
66
+ <p align="center">
67
+ <img src="./images/dist_document_length.png" width="600" style="margin-right: 10px;" />
68
+ </p>
69
+ <!-- END-DATASET PLOTS -->
70
+
71
+ ## Additional Information
72
+ The dataset was constructed using an external metadata [reference](https://huggingface.co/datasets/danish-foundation-models/cellar-metadata). The metadata set was constructed by iterating through all months since 1955 using Cellar's SPARQL endpoints.
73
+
74
+ HTML/XML files were parsed with html-to-markdown and PDF's with liteparse.
75
+
76
+ ### Limitations
77
+ Due to the size of the dataset, pdf extraction was conducted without OCR. Moreover files spanning more 100 mb were not parsed. PDF's were also truncated to 100 pages.
78
+
79
+ Some light cleanup was conducted, but the samples are not always perfect.
80
+
81
+ There is a large amount of content residing in tables, which might not always be language heavy.
82
+
83
+ ### License Information
84
+
85
+ Data is licensed under the [Attribution-ShareAlike 4.0 International license](https://creativecommons.org/licenses/by-sa/4.0/). Thus, attribution to Cellar is required when using this data.
86
+
87
+ ### Citation Information
88
+
89
+ No citation is applicable for this work.
data/cellar/cellar.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6b1fedb927aa03b5727bf028e85eae274d53871291d4f5b3902d07170501c88
3
+ size 5883474423
data/cellar/create.py ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # /// script
2
+ # requires-python = ">=3.12"
3
+ # dependencies = [
4
+ # "datasets",
5
+ # "requests",
6
+ # "tenacity",
7
+ # "dynaword",
8
+ # "liteparse",
9
+ # "html-to-markdown",
10
+ # ]
11
+ #
12
+ # [tool.uv.sources]
13
+ # dynaword = { path = "../.." }
14
+ # ///
15
+ """
16
+ Script for fetching Swedish cellar documents.
17
+ To run script separately (without downloading entire repo), run `GIT_LFS_SKIP_SMUDGE=1 uv run create.py`
18
+ """
19
+ import re
20
+ from pathlib import Path
21
+ from datetime import date
22
+ from time import sleep
23
+
24
+ import multiprocess
25
+ from datasets import load_dataset, load_from_disk, Dataset
26
+ from tenacity import retry, stop_after_attempt, wait_exponential
27
+ import requests
28
+ from html_to_markdown import convert, ConversionOptions
29
+ from liteparse import LiteParse
30
+
31
+ from dynaword.process_dataset import (
32
+ add_token_count,
33
+ ensure_column_order,
34
+ remove_empty_texts,
35
+ remove_duplicate_text
36
+ )
37
+
38
+ SOURCE = "cellar"
39
+ CLEAR_DIRECTORY = True
40
+ WORKERS = 32
41
+ LANGCODE = "SWE"
42
+
43
+ ROOT = Path(__file__).parent
44
+ EXTRACT_OUT = ROOT / "extracted"
45
+
46
+ DS_PATH = ROOT / "swedish_metadata"
47
+
48
+ EXTRACT_OUT.mkdir(exist_ok=True)
49
+
50
+ @retry(stop=stop_after_attempt(3), wait=wait_exponential(multiplier=1))
51
+ def fetch(url):
52
+ resp = requests.get(url, timeout=30)
53
+ resp.raise_for_status()
54
+ return resp
55
+
56
+ def parse_uri(uri : str):
57
+ """get id + manifestation + DOC of CELLAR uri"""
58
+ item = uri.rsplit("/", 2)[1]
59
+ item_id, expression, manifestation = item.rsplit(".")
60
+ return item_id, int(manifestation)
61
+
62
+ def fetch_and_convert(example):
63
+ """ Fetch and save pdf files using endpoints from the metadata dataset """
64
+ type = example["type"]
65
+ url = example["item"]
66
+ idx = example["global_index"]
67
+
68
+ #lite parse options
69
+ parser = LiteParse(
70
+ output_format="markdown",
71
+ image_mode="off",
72
+ extract_links=False,
73
+ quiet=True,
74
+ max_pages=100, # to avoid memory crashes
75
+ ocr_enabled=False # need better GPU to enable OCR for now
76
+ )
77
+
78
+ #html-to-markdown options
79
+ options = ConversionOptions(extract_metadata=False, skip_images=True)
80
+
81
+ # skip if exists
82
+ if Path(EXTRACT_OUT / f"{idx}.md").exists():
83
+ return
84
+
85
+ try:
86
+ resp = fetch(url)
87
+ # skip large files (> 100 mb)
88
+ if len(resp.content) / (1024 * 1024) > 100:
89
+ return
90
+ except Exception as e:
91
+ print(f"Fetch exception, skipping... {e}")
92
+
93
+
94
+ try:
95
+ if type in ["pdf", "pdfa2a", "pdfa1a", "pdf1x", "pdfx4", "pdfx", "pdfa1b"]:
96
+ with open(EXTRACT_OUT / f"{idx}.md", "w") as f:
97
+ try:
98
+ result = parser.parse(resp.content)
99
+ f.write(result.text)
100
+ except Exception as e:
101
+ print("liteparse: Failed parsing pdf ", e)
102
+
103
+ elif type in ["html", "xhtml", "xhtml5", "xml", "etsi_xml"]:
104
+ with open(EXTRACT_OUT / f"{idx}.md", "w", encoding="utf-8") as f:
105
+ try:
106
+ result = convert(resp.text, options)
107
+ f.write(result.content)
108
+
109
+ except Exception as e:
110
+ print(f"html-to-markdown: Failed parsing {type}: ", e)
111
+ else:
112
+ print(f"Skipping non-compatible filetype {type}.")
113
+
114
+ except Exception as e:
115
+ print(f"File error, skipping... {e}")
116
+
117
+ return
118
+
119
+ def create_samples(metadata):
120
+ """Run through the extracted files and construct dataset"""
121
+ #for fast date lookup
122
+ date_map = dict(zip(metadata["global_index"], metadata["date"]))
123
+ item_map = dict(zip(metadata["global_index"], metadata["item"]))
124
+ scan_idx = []
125
+ scanned_items = {}
126
+
127
+ # check for items with multiple manifestations (file types), so we don't include the same item twice
128
+ for file in EXTRACT_OUT.rglob("**/*.md"):
129
+ idx = int(file.stem)
130
+ item_id, manif = parse_uri(item_map[idx])
131
+ if scanned_items.setdefault(item_id, manif) == manif: # only include item if it doesn't exist as another manifestation
132
+ scan_idx.append(idx)
133
+
134
+ for idx in scan_idx:
135
+ with open(EXTRACT_OUT / f"{idx}.md",mode="r") as f:
136
+ doc = f.read()
137
+
138
+ _date = date_map.get(idx)
139
+ created = f"{_date}, {_date}" if _date else f"1955-01-01, 2026-12-31"
140
+
141
+ yield {
142
+ "id": f"{SOURCE}_{idx}",
143
+ "text": doc,
144
+ "source": SOURCE,
145
+ "added": date.today().strftime("%Y-%m-%d"),
146
+ "created": created
147
+ }
148
+
149
+ def clean_samples(example):
150
+ example["text"] = re.sub(r'<?\?xml.*?\?>', '', example["text"]).strip()
151
+ return example
152
+
153
+ if __name__ == "__main__":
154
+ if DS_PATH.exists():
155
+ filtered_ds = load_from_disk(DS_PATH)
156
+ else:
157
+ ds = load_dataset("danish-foundation-models/cellar-metadata", split="train")
158
+ filtered_ds = ds.filter(lambda x: x["langCode"] == LANGCODE)
159
+ filtered_ds = filtered_ds.add_column("global_index", range(len(filtered_ds)))
160
+ filtered_ds.save_to_disk(DS_PATH)
161
+
162
+ multiprocess.set_start_method("spawn", force=True)
163
+ filtered_ds.map(fetch_and_convert, desc="Fetching and converting...", num_proc=WORKERS)
164
+
165
+ ds = Dataset.from_generator(create_samples, gen_kwargs={"metadata": filtered_ds})
166
+
167
+ ds = remove_empty_texts(ds)
168
+ ds = remove_duplicate_text(ds)
169
+ ds = add_token_count(ds)
170
+ ds = ensure_column_order(ds)
171
+
172
+ # clean xml artifacts
173
+ ds = ds.map(clean_samples, num_proc=WORKERS)
174
+
175
+ # filter out samples with more than 20% non unicode characters (bad documents or failed parsing)
176
+ ds = ds.filter(lambda example: False if example["text"].count('\ufffd') > len(example["text"]) * 0.2 else True, num_proc=32)
177
+
178
+ ds.to_parquet(ROOT / "cellar.parquet")
179
+ print("Done!")
data/cellar/descriptive_stats.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number_of_samples": 419340,
3
+ "number_of_tokens": 4728694498,
4
+ "min_length_tokens": 3,
5
+ "max_length_tokens": 8140217,
6
+ "number_of_characters": 15163659058,
7
+ "min_length_characters": 5,
8
+ "max_length_characters": 41444647
9
+ }
data/cellar/images/dist_document_length.png ADDED

Git LFS Details

  • SHA256: 0086fbd769ef75a64ef0fc5be43e4de19770604d84a7ee7b517eaf325a04196f
  • Pointer size: 131 Bytes
  • Size of remote file: 185 kB
descriptive_stats.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
- "number_of_samples": 187173,
3
- "number_of_tokens": 3214465209,
4
- "min_length_tokens": 21,
5
- "max_length_tokens": 4060797,
6
- "number_of_characters": 9240364796,
7
- "min_length_characters": 49,
8
- "max_length_characters": 11613550
9
  }
 
1
  {
2
+ "number_of_samples": 606513,
3
+ "number_of_tokens": 7943159707,
4
+ "min_length_tokens": 3,
5
+ "max_length_tokens": 8140217,
6
+ "number_of_characters": 24404023854,
7
+ "min_length_characters": 5,
8
+ "max_length_characters": 41444647
9
  }
images/dataset_size_plot.html CHANGED
@@ -3883,6 +3883,6 @@ maplibre-gl/dist/maplibre-gl.js:
3883
 
3884
  window.Plotly = Plotly;
3885
  return Plotly;
3886
- }));</script> <div id="53a48069-bcb5-4e5f-9422-d0870340145a" class="plotly-graph-div" style="height:100%; width:100%;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("53a48069-bcb5-4e5f-9422-d0870340145a")) { Plotly.newPlot( "53a48069-bcb5-4e5f-9422-d0870340145a", [{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[3223,1618514],"y":["riksdagen-utredningar","riksdagen-utredningar"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[167,650018],"y":["riksdagen-register","riksdagen-register"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[44,203677],"y":["riksdagen-motioner","riksdagen-motioner"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[349390,708414],"y":["svensk-tidskrift","svensk-tidskrift"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[147,291735],"y":["riksdagen-skrivelser","riksdagen-skrivelser"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[39,4060797],"y":["riksdagen-propositioner","riksdagen-propositioner"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[89,682955],"y":["riksdagen-betankanden","riksdagen-betankanden"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[146,1129984],"y":["riksdagen-berattelser","riksdagen-berattelser"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[95,433198],"y":["riksdagen-protokoll","riksdagen-protokoll"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[313,14202],"y":["dalpilen-1860","dalpilen-1860"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[1619,1414448],"y":["statens-offentliga-utredningar","statens-offentliga-utredningar"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[21,80237],"y":["lag1800","lag1800"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[261493,426881],"y":["biblioteksbladet","biblioteksbladet"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[179,93150],"y":["riksdagen-reglementen","riksdagen-reglementen"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[295,10067],"y":["riksdagen-forfattningssamling","riksdagen-forfattningssamling"],"type":"scatter"},{"hovertemplate":"\u003cb\u003e%{y}\u003c\u002fb\u003e\u003cbr\u003eMin: %{x:,} tokens\u003cextra\u003e\u003c\u002fextra\u003e","marker":{"color":"lightblue","size":6,"symbol":"circle"},"mode":"markers","name":"Min tokens","x":{"dtype":"i4","bdata":"lwwAAKcAAAAsAAAAzlQFAJMAAAAnAAAAWQAAAJIAAABfAAAAOQEAAFMGAAAVAAAAdf0DALMAAAAnAQAA"},"y":["riksdagen-utredningar","riksdagen-register","riksdagen-motioner","svensk-tidskrift","riksdagen-skrivelser","riksdagen-propositioner","riksdagen-betankanden","riksdagen-berattelser","riksdagen-protokoll","dalpilen-1860","statens-offentliga-utredningar","lag1800","biblioteksbladet","riksdagen-reglementen","riksdagen-forfattningssamling"],"type":"scatter"},{"hovertemplate":"\u003cb\u003e%{y}\u003c\u002fb\u003e\u003cbr\u003eMax: %{x:,} tokens\u003cextra\u003e\u003c\u002fextra\u003e","marker":{"color":"darkred","size":6,"symbol":"circle"},"mode":"markers","name":"Max tokens","x":{"dtype":"i4","bdata":"UrIYACLrCQCdGwMAPs8KAJdzBAB99j0Ay2sKAAA+EQAunAYAejcAADCVFQBtOQEAgYMGAN5rAQBTJwAA"},"y":["riksdagen-utredningar","riksdagen-register","riksdagen-motioner","svensk-tidskrift","riksdagen-skrivelser","riksdagen-propositioner","riksdagen-betankanden","riksdagen-berattelser","riksdagen-protokoll","dalpilen-1860","statens-offentliga-utredningar","lag1800","biblioteksbladet","riksdagen-reglementen","riksdagen-forfattningssamling"],"type":"scatter"},{"hovertemplate":"\u003cb\u003e%{y}\u003c\u002fb\u003e\u003cbr\u003eMean: %{x:,.0f} tokens\u003cextra\u003e\u003c\u002fextra\u003e","marker":{"color":"orange","size":8,"symbol":"diamond"},"mode":"markers","name":"Mean tokens","x":{"dtype":"f8","bdata":"x8s6S9LZBUGanPImUBbhQIFxKZ6ckqBAx3EcxyVoH0H8oERUNdWiQOCAZFJIRuFAmiGY4daRwEDLrLbhXLoDQQm53Ot9nOxAZ27Zb2gawECqMBRazHQGQVqH3WPTg5xACtejcF1EFUHO0TdHf9\u002fkQDuxEzsx8KtA"},"y":["riksdagen-utredningar","riksdagen-register","riksdagen-motioner","svensk-tidskrift","riksdagen-skrivelser","riksdagen-propositioner","riksdagen-betankanden","riksdagen-berattelser","riksdagen-protokoll","dalpilen-1860","statens-offentliga-utredningar","lag1800","biblioteksbladet","riksdagen-reglementen","riksdagen-forfattningssamling"],"type":"scatter"}], {"template":{"data":{"barpolar":[{"marker":{"line":{"color":"white","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"barpolar"}],"bar":[{"error_x":{"color":"#2a3f5f"},"error_y":{"color":"#2a3f5f"},"marker":{"line":{"color":"white","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"bar"}],"carpet":[{"aaxis":{"endlinecolor":"#2a3f5f","gridcolor":"#C8D4E3","linecolor":"#C8D4E3","minorgridcolor":"#C8D4E3","startlinecolor":"#2a3f5f"},"baxis":{"endlinecolor":"#2a3f5f","gridcolor":"#C8D4E3","linecolor":"#C8D4E3","minorgridcolor":"#C8D4E3","startlinecolor":"#2a3f5f"},"type":"carpet"}],"choropleth":[{"colorbar":{"outlinewidth":0,"ticks":""},"type":"choropleth"}],"contourcarpet":[{"colorbar":{"outlinewidth":0,"ticks":""},"type":"contourcarpet"}],"contour":[{"colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"type":"contour"}],"heatmap":[{"colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"type":"heatmap"}],"histogram2dcontour":[{"colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"type":"histogram2dcontour"}],"histogram2d":[{"colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"type":"histogram2d"}],"histogram":[{"marker":{"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"histogram"}],"mesh3d":[{"colorbar":{"outlinewidth":0,"ticks":""},"type":"mesh3d"}],"parcoords":[{"line":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"parcoords"}],"pie":[{"automargin":true,"type":"pie"}],"scatter3d":[{"line":{"colorbar":{"outlinewidth":0,"ticks":""}},"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scatter3d"}],"scattercarpet":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scattercarpet"}],"scattergeo":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scattergeo"}],"scattergl":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scattergl"}],"scattermapbox":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scattermapbox"}],"scattermap":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scattermap"}],"scatterpolargl":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scatterpolargl"}],"scatterpolar":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scatterpolar"}],"scatter":[{"fillpattern":{"fillmode":"overlay","size":10,"solidity":0.2},"type":"scatter"}],"scatterternary":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scatterternary"}],"surface":[{"colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"type":"surface"}],"table":[{"cells":{"fill":{"color":"#EBF0F8"},"line":{"color":"white"}},"header":{"fill":{"color":"#C8D4E3"},"line":{"color":"white"}},"type":"table"}]},"layout":{"annotationdefaults":{"arrowcolor":"#2a3f5f","arrowhead":0,"arrowwidth":1},"autotypenumbers":"strict","coloraxis":{"colorbar":{"outlinewidth":0,"ticks":""}},"colorscale":{"diverging":[[0,"#8e0152"],[0.1,"#c51b7d"],[0.2,"#de77ae"],[0.3,"#f1b6da"],[0.4,"#fde0ef"],[0.5,"#f7f7f7"],[0.6,"#e6f5d0"],[0.7,"#b8e186"],[0.8,"#7fbc41"],[0.9,"#4d9221"],[1,"#276419"]],"sequential":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"sequentialminus":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]},"colorway":["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],"font":{"color":"#2a3f5f"},"geo":{"bgcolor":"white","lakecolor":"white","landcolor":"white","showlakes":true,"showland":true,"subunitcolor":"#C8D4E3"},"hoverlabel":{"align":"left"},"hovermode":"closest","mapbox":{"style":"light"},"paper_bgcolor":"white","plot_bgcolor":"white","polar":{"angularaxis":{"gridcolor":"#EBF0F8","linecolor":"#EBF0F8","ticks":""},"bgcolor":"white","radialaxis":{"gridcolor":"#EBF0F8","linecolor":"#EBF0F8","ticks":""}},"scene":{"xaxis":{"backgroundcolor":"white","gridcolor":"#DFE8F3","gridwidth":2,"linecolor":"#EBF0F8","showbackground":true,"ticks":"","zerolinecolor":"#EBF0F8"},"yaxis":{"backgroundcolor":"white","gridcolor":"#DFE8F3","gridwidth":2,"linecolor":"#EBF0F8","showbackground":true,"ticks":"","zerolinecolor":"#EBF0F8"},"zaxis":{"backgroundcolor":"white","gridcolor":"#DFE8F3","gridwidth":2,"linecolor":"#EBF0F8","showbackground":true,"ticks":"","zerolinecolor":"#EBF0F8"}},"shapedefaults":{"line":{"color":"#2a3f5f"}},"ternary":{"aaxis":{"gridcolor":"#DFE8F3","linecolor":"#A2B1C6","ticks":""},"baxis":{"gridcolor":"#DFE8F3","linecolor":"#A2B1C6","ticks":""},"bgcolor":"white","caxis":{"gridcolor":"#DFE8F3","linecolor":"#A2B1C6","ticks":""}},"title":{"x":0.05},"xaxis":{"automargin":true,"gridcolor":"#EBF0F8","linecolor":"#EBF0F8","ticks":"","title":{"standoff":15},"zerolinecolor":"#EBF0F8","zerolinewidth":2},"yaxis":{"automargin":true,"gridcolor":"#EBF0F8","linecolor":"#EBF0F8","ticks":"","title":{"standoff":15},"zerolinecolor":"#EBF0F8","zerolinewidth":2}}},"xaxis":{"title":{"text":"Number of Tokens (log scale)"},"type":"log"},"margin":{"l":120},"yaxis":{"title":{"text":"Dataset"},"tickmode":"array","tickvals":["riksdagen-utredningar","riksdagen-register","riksdagen-motioner","svensk-tidskrift","riksdagen-skrivelser","riksdagen-propositioner","riksdagen-betankanden","riksdagen-berattelser","riksdagen-protokoll","dalpilen-1860","statens-offentliga-utredningar","lag1800","biblioteksbladet","riksdagen-reglementen","riksdagen-forfattningssamling"],"ticktext":["Riksdagen: Government Official Investigations","Riksdagen: Register","Riksdagen: Motions","Svensk Tidskrift (1891–1940)","Riksdagen: Letters of the Riksdag","Riksdagen: Propositions and Letters","Riksdagen: Reports, Memorandums and Opinions","Riksdagen: Narratives and Accounts","Riksdagen: Protocols","Dalpilen 1860's","Statens offentliga utredningar (1922–1996)","Laws from the 1800's","Biblioteksbladet (1916–1940)","Riksdagen: Regulations","Riksdagen: The Constitution of the Riksdag"],"categoryorder":"array","categoryarray":["riksdagen-utredningar","riksdagen-register","riksdagen-motioner","svensk-tidskrift","riksdagen-skrivelser","riksdagen-propositioner","riksdagen-betankanden","riksdagen-berattelser","riksdagen-protokoll","dalpilen-1860","statens-offentliga-utredningar","lag1800","biblioteksbladet","riksdagen-reglementen","riksdagen-forfattningssamling"],"range":[-0.5,14.5]},"title":{"text":"Token Length Distribution by Dataset\u003cbr\u003e\u003csub\u003eRange (min-max) with mean values\u003c\u002fsub\u003e"}}, {"responsive": true} ) }; </script> </div>
3887
  </body>
3888
  </html>
 
3883
 
3884
  window.Plotly = Plotly;
3885
  return Plotly;
3886
+ }));</script> <div id="cdb41996-360a-4d6a-a7b4-0e6813aaff02" class="plotly-graph-div" style="height:100%; width:100%;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("cdb41996-360a-4d6a-a7b4-0e6813aaff02")) { Plotly.newPlot( "cdb41996-360a-4d6a-a7b4-0e6813aaff02", [{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[261493,426881],"y":["biblioteksbladet","biblioteksbladet"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[3223,1618514],"y":["riksdagen-utredningar","riksdagen-utredningar"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[44,203677],"y":["riksdagen-motioner","riksdagen-motioner"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[21,80237],"y":["lag1800","lag1800"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[89,682955],"y":["riksdagen-betankanden","riksdagen-betankanden"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[313,14202],"y":["dalpilen-1860","dalpilen-1860"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[1619,1414448],"y":["statens-offentliga-utredningar","statens-offentliga-utredningar"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[39,4060797],"y":["riksdagen-propositioner","riksdagen-propositioner"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[167,650018],"y":["riksdagen-register","riksdagen-register"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[147,291735],"y":["riksdagen-skrivelser","riksdagen-skrivelser"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[146,1129984],"y":["riksdagen-berattelser","riksdagen-berattelser"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[349390,708414],"y":["svensk-tidskrift","svensk-tidskrift"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[3,8140217],"y":["cellar","cellar"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[95,433198],"y":["riksdagen-protokoll","riksdagen-protokoll"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[295,10067],"y":["riksdagen-forfattningssamling","riksdagen-forfattningssamling"],"type":"scatter"},{"hoverinfo":"skip","line":{"color":"lightgray","width":3},"mode":"lines","showlegend":false,"x":[179,93150],"y":["riksdagen-reglementen","riksdagen-reglementen"],"type":"scatter"},{"hovertemplate":"\u003cb\u003e%{y}\u003c\u002fb\u003e\u003cbr\u003eMin: %{x:,} tokens\u003cextra\u003e\u003c\u002fextra\u003e","marker":{"color":"lightblue","size":6,"symbol":"circle"},"mode":"markers","name":"Min tokens","x":{"dtype":"i4","bdata":"df0DAJcMAAAsAAAAFQAAAFkAAAA5AQAAUwYAACcAAACnAAAAkwAAAJIAAADOVAUAAwAAAF8AAAAnAQAAswAAAA=="},"y":["biblioteksbladet","riksdagen-utredningar","riksdagen-motioner","lag1800","riksdagen-betankanden","dalpilen-1860","statens-offentliga-utredningar","riksdagen-propositioner","riksdagen-register","riksdagen-skrivelser","riksdagen-berattelser","svensk-tidskrift","cellar","riksdagen-protokoll","riksdagen-forfattningssamling","riksdagen-reglementen"],"type":"scatter"},{"hovertemplate":"\u003cb\u003e%{y}\u003c\u002fb\u003e\u003cbr\u003eMax: %{x:,} tokens\u003cextra\u003e\u003c\u002fextra\u003e","marker":{"color":"darkred","size":6,"symbol":"circle"},"mode":"markers","name":"Max tokens","x":{"dtype":"i4","bdata":"gYMGAFKyGACdGwMAbTkBAMtrCgB6NwAAMJUVAH32PQAi6wkAl3MEAAA+EQA+zwoAuTV8AC6cBgBTJwAA3msBAA=="},"y":["biblioteksbladet","riksdagen-utredningar","riksdagen-motioner","lag1800","riksdagen-betankanden","dalpilen-1860","statens-offentliga-utredningar","riksdagen-propositioner","riksdagen-register","riksdagen-skrivelser","riksdagen-berattelser","svensk-tidskrift","cellar","riksdagen-protokoll","riksdagen-forfattningssamling","riksdagen-reglementen"],"type":"scatter"},{"hovertemplate":"\u003cb\u003e%{y}\u003c\u002fb\u003e\u003cbr\u003eMean: %{x:,.0f} tokens\u003cextra\u003e\u003c\u002fextra\u003e","marker":{"color":"orange","size":8,"symbol":"diamond"},"mode":"markers","name":"Mean tokens","x":{"dtype":"f8","bdata":"CtejcF1EFUHHyzpL0tkFQYFxKZ6ckqBAWofdY9ODnECaIZjh1pHAQGdu2W9oGsBAqjAUWsx0BkHggGRSSEbhQJqc8iZQFuFA\u002fKBEVDXVokDLrLbhXLoDQcdxHMclaB9BCCEOIkIGxkAJudzrfZzsQDuxEzsx8KtAztE3R3\u002ff5EA="},"y":["biblioteksbladet","riksdagen-utredningar","riksdagen-motioner","lag1800","riksdagen-betankanden","dalpilen-1860","statens-offentliga-utredningar","riksdagen-propositioner","riksdagen-register","riksdagen-skrivelser","riksdagen-berattelser","svensk-tidskrift","cellar","riksdagen-protokoll","riksdagen-forfattningssamling","riksdagen-reglementen"],"type":"scatter"}], {"template":{"data":{"barpolar":[{"marker":{"line":{"color":"white","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"barpolar"}],"bar":[{"error_x":{"color":"#2a3f5f"},"error_y":{"color":"#2a3f5f"},"marker":{"line":{"color":"white","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"bar"}],"carpet":[{"aaxis":{"endlinecolor":"#2a3f5f","gridcolor":"#C8D4E3","linecolor":"#C8D4E3","minorgridcolor":"#C8D4E3","startlinecolor":"#2a3f5f"},"baxis":{"endlinecolor":"#2a3f5f","gridcolor":"#C8D4E3","linecolor":"#C8D4E3","minorgridcolor":"#C8D4E3","startlinecolor":"#2a3f5f"},"type":"carpet"}],"choropleth":[{"colorbar":{"outlinewidth":0,"ticks":""},"type":"choropleth"}],"contourcarpet":[{"colorbar":{"outlinewidth":0,"ticks":""},"type":"contourcarpet"}],"contour":[{"colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"type":"contour"}],"heatmap":[{"colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"type":"heatmap"}],"histogram2dcontour":[{"colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"type":"histogram2dcontour"}],"histogram2d":[{"colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"type":"histogram2d"}],"histogram":[{"marker":{"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"histogram"}],"mesh3d":[{"colorbar":{"outlinewidth":0,"ticks":""},"type":"mesh3d"}],"parcoords":[{"line":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"parcoords"}],"pie":[{"automargin":true,"type":"pie"}],"scatter3d":[{"line":{"colorbar":{"outlinewidth":0,"ticks":""}},"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scatter3d"}],"scattercarpet":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scattercarpet"}],"scattergeo":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scattergeo"}],"scattergl":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scattergl"}],"scattermapbox":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scattermapbox"}],"scattermap":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scattermap"}],"scatterpolargl":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scatterpolargl"}],"scatterpolar":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scatterpolar"}],"scatter":[{"fillpattern":{"fillmode":"overlay","size":10,"solidity":0.2},"type":"scatter"}],"scatterternary":[{"marker":{"colorbar":{"outlinewidth":0,"ticks":""}},"type":"scatterternary"}],"surface":[{"colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"type":"surface"}],"table":[{"cells":{"fill":{"color":"#EBF0F8"},"line":{"color":"white"}},"header":{"fill":{"color":"#C8D4E3"},"line":{"color":"white"}},"type":"table"}]},"layout":{"annotationdefaults":{"arrowcolor":"#2a3f5f","arrowhead":0,"arrowwidth":1},"autotypenumbers":"strict","coloraxis":{"colorbar":{"outlinewidth":0,"ticks":""}},"colorscale":{"diverging":[[0,"#8e0152"],[0.1,"#c51b7d"],[0.2,"#de77ae"],[0.3,"#f1b6da"],[0.4,"#fde0ef"],[0.5,"#f7f7f7"],[0.6,"#e6f5d0"],[0.7,"#b8e186"],[0.8,"#7fbc41"],[0.9,"#4d9221"],[1,"#276419"]],"sequential":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"sequentialminus":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]},"colorway":["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],"font":{"color":"#2a3f5f"},"geo":{"bgcolor":"white","lakecolor":"white","landcolor":"white","showlakes":true,"showland":true,"subunitcolor":"#C8D4E3"},"hoverlabel":{"align":"left"},"hovermode":"closest","mapbox":{"style":"light"},"paper_bgcolor":"white","plot_bgcolor":"white","polar":{"angularaxis":{"gridcolor":"#EBF0F8","linecolor":"#EBF0F8","ticks":""},"bgcolor":"white","radialaxis":{"gridcolor":"#EBF0F8","linecolor":"#EBF0F8","ticks":""}},"scene":{"xaxis":{"backgroundcolor":"white","gridcolor":"#DFE8F3","gridwidth":2,"linecolor":"#EBF0F8","showbackground":true,"ticks":"","zerolinecolor":"#EBF0F8"},"yaxis":{"backgroundcolor":"white","gridcolor":"#DFE8F3","gridwidth":2,"linecolor":"#EBF0F8","showbackground":true,"ticks":"","zerolinecolor":"#EBF0F8"},"zaxis":{"backgroundcolor":"white","gridcolor":"#DFE8F3","gridwidth":2,"linecolor":"#EBF0F8","showbackground":true,"ticks":"","zerolinecolor":"#EBF0F8"}},"shapedefaults":{"line":{"color":"#2a3f5f"}},"ternary":{"aaxis":{"gridcolor":"#DFE8F3","linecolor":"#A2B1C6","ticks":""},"baxis":{"gridcolor":"#DFE8F3","linecolor":"#A2B1C6","ticks":""},"bgcolor":"white","caxis":{"gridcolor":"#DFE8F3","linecolor":"#A2B1C6","ticks":""}},"title":{"x":0.05},"xaxis":{"automargin":true,"gridcolor":"#EBF0F8","linecolor":"#EBF0F8","ticks":"","title":{"standoff":15},"zerolinecolor":"#EBF0F8","zerolinewidth":2},"yaxis":{"automargin":true,"gridcolor":"#EBF0F8","linecolor":"#EBF0F8","ticks":"","title":{"standoff":15},"zerolinecolor":"#EBF0F8","zerolinewidth":2}}},"xaxis":{"title":{"text":"Number of Tokens (log scale)"},"type":"log"},"margin":{"l":120},"yaxis":{"title":{"text":"Dataset"},"tickmode":"array","tickvals":["biblioteksbladet","riksdagen-utredningar","riksdagen-motioner","lag1800","riksdagen-betankanden","dalpilen-1860","statens-offentliga-utredningar","riksdagen-propositioner","riksdagen-register","riksdagen-skrivelser","riksdagen-berattelser","svensk-tidskrift","cellar","riksdagen-protokoll","riksdagen-forfattningssamling","riksdagen-reglementen"],"ticktext":["Biblioteksbladet (1916–1940)","Riksdagen: Government Official Investigations","Riksdagen: Motions","Laws from the 1800's","Riksdagen: Reports, Memorandums and Opinions","Dalpilen 1860's","Statens offentliga utredningar (1922–1996)","Riksdagen: Propositions and Letters","Riksdagen: Register","Riksdagen: Letters of the Riksdag","Riksdagen: Narratives and Accounts","Svensk Tidskrift (1891–1940)","Cellar","Riksdagen: Protocols","Riksdagen: The Constitution of the Riksdag","Riksdagen: Regulations"],"categoryorder":"array","categoryarray":["biblioteksbladet","riksdagen-utredningar","riksdagen-motioner","lag1800","riksdagen-betankanden","dalpilen-1860","statens-offentliga-utredningar","riksdagen-propositioner","riksdagen-register","riksdagen-skrivelser","riksdagen-berattelser","svensk-tidskrift","cellar","riksdagen-protokoll","riksdagen-forfattningssamling","riksdagen-reglementen"],"range":[-0.5,15.5]},"title":{"text":"Token Length Distribution by Dataset\u003cbr\u003e\u003csub\u003eRange (min-max) with mean values\u003c\u002fsub\u003e"}}, {"responsive": true} ) }; </script> </div>
3887
  </body>
3888
  </html>
images/dataset_size_plot.svg CHANGED
images/domain_distribution.png CHANGED

Git LFS Details

  • SHA256: 5fe1ee9567774adc1e1d09f77e18fef8f888c98cfc1d15fa20a3abaf1a39a135
  • Pointer size: 131 Bytes
  • Size of remote file: 226 kB

Git LFS Details

  • SHA256: 31a16fbeac31596a7665dba5e716778107ec5c6748a2b813ef91a0c964d25845
  • Pointer size: 131 Bytes
  • Size of remote file: 279 kB
images/language_distribution.html CHANGED
@@ -3883,6 +3883,6 @@ maplibre-gl/dist/maplibre-gl.js:
3883
 
3884
  window.Plotly = Plotly;
3885
  return Plotly;
3886
- }));</script> <div id="62f6246c-8d03-41c1-b371-62897b59cc7b" class="plotly-graph-div" style="height:100%; width:100%;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("62f6246c-8d03-41c1-b371-62897b59cc7b")) { Plotly.newPlot( "62f6246c-8d03-41c1-b371-62897b59cc7b", [{"branchvalues":"total","domain":{"x":[0.0,1.0],"y":[0.0,1.0]},"hovertemplate":"labels=%{label}\u003cbr\u003eN. Tokens=%{value}\u003cbr\u003eparent=%{parent}\u003cbr\u003eid=%{id}\u003cextra\u003e\u003c\u002fextra\u003e","ids":["sv\u002fstatens-offentliga-utredningar","sv\u002friksdagen-propositioner","sv\u002friksdagen-protokoll","sv\u002friksdagen-betankanden","sv\u002friksdagen-motioner","sv\u002friksdagen-berattelser","sv\u002friksdagen-utredningar","sv\u002friksdagen-skrivelser","sv\u002friksdagen-register","sv\u002fdalpilen-1860","sv\u002fsvensk-tidskrift","sv\u002fbiblioteksbladet","sv\u002friksdagen-reglementen","sv\u002flag1800","sv\u002friksdagen-forfattningssamling","sv"],"labels":["statens-offentliga-utredningar","riksdagen-propositioner","riksdagen-protokoll","riksdagen-betankanden","riksdagen-motioner","riksdagen-berattelser","riksdagen-utredningar","riksdagen-skrivelser","riksdagen-register","dalpilen-1860","svensk-tidskrift","biblioteksbladet","riksdagen-reglementen","lag1800","riksdagen-forfattningssamling","sv"],"name":"","parents":["sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv",""],"values":{"dtype":"f8","bdata":"AACA9WEcy0EAAIDSyNXEQQAAAJBwmsJBAAAAOAw+uUEAAABkUdyhQQAAAKzI8J5BAAAAbLrqnUEAAACYJHeNQQAAAMj\u002fDoVBAAAAUGOzcEEAAADg339qQQAAAABpnWBBAAAAQDqwVUEAAAAABiAsQQAAAAAoswZBAAAgFxvz50E="},"type":"sunburst","textinfo":"label+percent entry"}], {"template":{"data":{"histogram2dcontour":[{"type":"histogram2dcontour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"choropleth":[{"type":"choropleth","colorbar":{"outlinewidth":0,"ticks":""}}],"histogram2d":[{"type":"histogram2d","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"heatmap":[{"type":"heatmap","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"contourcarpet":[{"type":"contourcarpet","colorbar":{"outlinewidth":0,"ticks":""}}],"contour":[{"type":"contour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"surface":[{"type":"surface","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"mesh3d":[{"type":"mesh3d","colorbar":{"outlinewidth":0,"ticks":""}}],"scatter":[{"fillpattern":{"fillmode":"overlay","size":10,"solidity":0.2},"type":"scatter"}],"parcoords":[{"type":"parcoords","line":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolargl":[{"type":"scatterpolargl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"bar":[{"error_x":{"color":"#2a3f5f"},"error_y":{"color":"#2a3f5f"},"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"bar"}],"scattergeo":[{"type":"scattergeo","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolar":[{"type":"scatterpolar","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"histogram":[{"marker":{"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"histogram"}],"scattergl":[{"type":"scattergl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatter3d":[{"type":"scatter3d","line":{"colorbar":{"outlinewidth":0,"ticks":""}},"marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermap":[{"type":"scattermap","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermapbox":[{"type":"scattermapbox","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterternary":[{"type":"scatterternary","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattercarpet":[{"type":"scattercarpet","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"carpet":[{"aaxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"baxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"type":"carpet"}],"table":[{"cells":{"fill":{"color":"#EBF0F8"},"line":{"color":"white"}},"header":{"fill":{"color":"#C8D4E3"},"line":{"color":"white"}},"type":"table"}],"barpolar":[{"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"barpolar"}],"pie":[{"automargin":true,"type":"pie"}]},"layout":{"autotypenumbers":"strict","colorway":["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],"font":{"color":"#2a3f5f"},"hovermode":"closest","hoverlabel":{"align":"left"},"paper_bgcolor":"white","plot_bgcolor":"#E5ECF6","polar":{"bgcolor":"#E5ECF6","angularaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"radialaxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"ternary":{"bgcolor":"#E5ECF6","aaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"baxis":{"gridcolor":"white","linecolor":"white","ticks":""},"caxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"coloraxis":{"colorbar":{"outlinewidth":0,"ticks":""}},"colorscale":{"sequential":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"sequentialminus":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"diverging":[[0,"#8e0152"],[0.1,"#c51b7d"],[0.2,"#de77ae"],[0.3,"#f1b6da"],[0.4,"#fde0ef"],[0.5,"#f7f7f7"],[0.6,"#e6f5d0"],[0.7,"#b8e186"],[0.8,"#7fbc41"],[0.9,"#4d9221"],[1,"#276419"]]},"xaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"yaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"scene":{"xaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"yaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"zaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2}},"shapedefaults":{"line":{"color":"#2a3f5f"}},"annotationdefaults":{"arrowcolor":"#2a3f5f","arrowhead":0,"arrowwidth":1},"geo":{"bgcolor":"white","landcolor":"#E5ECF6","subunitcolor":"white","showland":true,"showlakes":true,"lakecolor":"white"},"title":{"x":0.05},"mapbox":{"style":"light"}}},"legend":{"tracegroupgap":0},"title":{"text":"Dataset Distribution by Language"}}, {"responsive": true} ) }; </script> </div>
3887
  </body>
3888
  </html>
 
3883
 
3884
  window.Plotly = Plotly;
3885
  return Plotly;
3886
+ }));</script> <div id="1fbf2323-2a16-467a-9ba8-8e405658e4ba" class="plotly-graph-div" style="height:100%; width:100%;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("1fbf2323-2a16-467a-9ba8-8e405658e4ba")) { Plotly.newPlot( "1fbf2323-2a16-467a-9ba8-8e405658e4ba", [{"branchvalues":"total","domain":{"x":[0.0,1.0],"y":[0.0,1.0]},"hovertemplate":"labels=%{label}\u003cbr\u003eN. Tokens=%{value}\u003cbr\u003eparent=%{parent}\u003cbr\u003eid=%{id}\u003cextra\u003e\u003c\u002fextra\u003e","ids":["sv\u002fcellar","sv\u002fstatens-offentliga-utredningar","sv\u002friksdagen-propositioner","sv\u002friksdagen-protokoll","sv\u002friksdagen-betankanden","sv\u002friksdagen-motioner","sv\u002friksdagen-berattelser","sv\u002friksdagen-utredningar","sv\u002friksdagen-skrivelser","sv\u002friksdagen-register","sv\u002fdalpilen-1860","sv\u002fsvensk-tidskrift","sv\u002fbiblioteksbladet","sv\u002friksdagen-reglementen","sv\u002flag1800","sv\u002friksdagen-forfattningssamling","sv"],"labels":["cellar","statens-offentliga-utredningar","riksdagen-propositioner","riksdagen-protokoll","riksdagen-betankanden","riksdagen-motioner","riksdagen-berattelser","riksdagen-utredningar","riksdagen-skrivelser","riksdagen-register","dalpilen-1860","svensk-tidskrift","biblioteksbladet","riksdagen-reglementen","lag1800","riksdagen-forfattningssamling","sv"],"name":"","parents":["sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv","sv",""],"values":{"dtype":"f8","bdata":"AAAgbqKd8UEAAID1YRzLQQAAgNLI1cRBAAAAkHCawkEAAAA4DD65QQAAAGRR3KFBAAAArMjwnkEAAABsuuqdQQAAAJgkd41BAAAAyP8OhUEAAABQY7NwQQAAAODff2pBAAAAAGmdYEEAAABAOrBVQQAAAAAGICxBAAAAACizBkEAALD5L5f9QQ=="},"type":"sunburst","textinfo":"label+percent entry"}], {"template":{"data":{"histogram2dcontour":[{"type":"histogram2dcontour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"choropleth":[{"type":"choropleth","colorbar":{"outlinewidth":0,"ticks":""}}],"histogram2d":[{"type":"histogram2d","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"heatmap":[{"type":"heatmap","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"contourcarpet":[{"type":"contourcarpet","colorbar":{"outlinewidth":0,"ticks":""}}],"contour":[{"type":"contour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"surface":[{"type":"surface","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"mesh3d":[{"type":"mesh3d","colorbar":{"outlinewidth":0,"ticks":""}}],"scatter":[{"fillpattern":{"fillmode":"overlay","size":10,"solidity":0.2},"type":"scatter"}],"parcoords":[{"type":"parcoords","line":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolargl":[{"type":"scatterpolargl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"bar":[{"error_x":{"color":"#2a3f5f"},"error_y":{"color":"#2a3f5f"},"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"bar"}],"scattergeo":[{"type":"scattergeo","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolar":[{"type":"scatterpolar","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"histogram":[{"marker":{"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"histogram"}],"scattergl":[{"type":"scattergl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatter3d":[{"type":"scatter3d","line":{"colorbar":{"outlinewidth":0,"ticks":""}},"marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermap":[{"type":"scattermap","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermapbox":[{"type":"scattermapbox","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterternary":[{"type":"scatterternary","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattercarpet":[{"type":"scattercarpet","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"carpet":[{"aaxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"baxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"type":"carpet"}],"table":[{"cells":{"fill":{"color":"#EBF0F8"},"line":{"color":"white"}},"header":{"fill":{"color":"#C8D4E3"},"line":{"color":"white"}},"type":"table"}],"barpolar":[{"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"barpolar"}],"pie":[{"automargin":true,"type":"pie"}]},"layout":{"autotypenumbers":"strict","colorway":["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],"font":{"color":"#2a3f5f"},"hovermode":"closest","hoverlabel":{"align":"left"},"paper_bgcolor":"white","plot_bgcolor":"#E5ECF6","polar":{"bgcolor":"#E5ECF6","angularaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"radialaxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"ternary":{"bgcolor":"#E5ECF6","aaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"baxis":{"gridcolor":"white","linecolor":"white","ticks":""},"caxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"coloraxis":{"colorbar":{"outlinewidth":0,"ticks":""}},"colorscale":{"sequential":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"sequentialminus":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"diverging":[[0,"#8e0152"],[0.1,"#c51b7d"],[0.2,"#de77ae"],[0.3,"#f1b6da"],[0.4,"#fde0ef"],[0.5,"#f7f7f7"],[0.6,"#e6f5d0"],[0.7,"#b8e186"],[0.8,"#7fbc41"],[0.9,"#4d9221"],[1,"#276419"]]},"xaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"yaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"scene":{"xaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"yaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"zaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2}},"shapedefaults":{"line":{"color":"#2a3f5f"}},"annotationdefaults":{"arrowcolor":"#2a3f5f","arrowhead":0,"arrowwidth":1},"geo":{"bgcolor":"white","landcolor":"#E5ECF6","subunitcolor":"white","showland":true,"showlakes":true,"lakecolor":"white"},"title":{"x":0.05},"mapbox":{"style":"light"}}},"legend":{"tracegroupgap":0},"title":{"text":"Dataset Distribution by Language"}}, {"responsive": true} ) }; </script> </div>
3887
  </body>
3888
  </html>
images/language_distribution.svg CHANGED
images/tokens_over_time.html CHANGED
@@ -2,6 +2,6 @@
2
  <head><meta charset="utf-8" /></head>
3
  <body>
4
  <div> <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
5
- <script charset="utf-8" src="https://cdn.plot.ly/plotly-3.3.1.min.js" integrity="sha256-4rD3fugVb/nVJYUv5Ky3v+fYXoouHaBSP20WIJuEiWg=" crossorigin="anonymous"></script> <div id="a3a9a450-e6d1-4c03-93e7-7987727315b3" class="plotly-graph-div" style="height:400px; width:600px;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("a3a9a450-e6d1-4c03-93e7-7987727315b3")) { Plotly.newPlot( "a3a9a450-e6d1-4c03-93e7-7987727315b3", [{"hovertemplate":"%{text}\u003cextra\u003e\u003c\u002fextra\u003e","line":{"color":"#DC2626","width":3},"marker":{"color":"#DC2626","size":5},"mode":"lines+markers","name":"Tokens","text":["Date: 2026-04-11\u003cbr\u003eTokens: 921.60k\u003cbr\u003eSamples: 505\u003cbr\u003eCommit: c9d3e757\u003cbr\u003eMessage: Add Swedish laws from 1800 (#12)","Date: 2026-04-14\u003cbr\u003eTokens: 18.43M\u003cbr\u003eChange: +17.51M\u003cbr\u003eSamples: 2,629\u003cbr\u003eCommit: 05eb38dd\u003cbr\u003eMessage: Add Dalpilen 1860's (#14)","Date: 2026-05-29\u003cbr\u003eTokens: 32.33M\u003cbr\u003eChange: +13.89M\u003cbr\u003eSamples: 2,656\u003cbr\u003eCommit: b49eaadf\u003cbr\u003eMessage: Added the `svensk-tidskrift`","Date: 2026-05-29\u003cbr\u003eTokens: 41.04M\u003cbr\u003eChange: +8.71M\u003cbr\u003eSamples: 2,681\u003cbr\u003eCommit: f11475e3\u003cbr\u003eMessage: Added `biblioteksbladet`"],"x":["2026-04-11T10:09:59","2026-04-14T10:29:38","2026-05-29T20:43:44","2026-05-29T21:50:52"],"y":{"dtype":"i4","bdata":"AxAOADhGGQE3Re0BfzByAg=="},"type":"scatter"}], {"template":{"data":{"histogram2dcontour":[{"type":"histogram2dcontour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"choropleth":[{"type":"choropleth","colorbar":{"outlinewidth":0,"ticks":""}}],"histogram2d":[{"type":"histogram2d","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"heatmap":[{"type":"heatmap","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"contourcarpet":[{"type":"contourcarpet","colorbar":{"outlinewidth":0,"ticks":""}}],"contour":[{"type":"contour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"surface":[{"type":"surface","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"mesh3d":[{"type":"mesh3d","colorbar":{"outlinewidth":0,"ticks":""}}],"scatter":[{"fillpattern":{"fillmode":"overlay","size":10,"solidity":0.2},"type":"scatter"}],"parcoords":[{"type":"parcoords","line":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolargl":[{"type":"scatterpolargl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"bar":[{"error_x":{"color":"#2a3f5f"},"error_y":{"color":"#2a3f5f"},"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"bar"}],"scattergeo":[{"type":"scattergeo","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolar":[{"type":"scatterpolar","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"histogram":[{"marker":{"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"histogram"}],"scattergl":[{"type":"scattergl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatter3d":[{"type":"scatter3d","line":{"colorbar":{"outlinewidth":0,"ticks":""}},"marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermap":[{"type":"scattermap","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermapbox":[{"type":"scattermapbox","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterternary":[{"type":"scatterternary","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattercarpet":[{"type":"scattercarpet","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"carpet":[{"aaxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"baxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"type":"carpet"}],"table":[{"cells":{"fill":{"color":"#EBF0F8"},"line":{"color":"white"}},"header":{"fill":{"color":"#C8D4E3"},"line":{"color":"white"}},"type":"table"}],"barpolar":[{"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"barpolar"}],"pie":[{"automargin":true,"type":"pie"}]},"layout":{"autotypenumbers":"strict","colorway":["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],"font":{"color":"#2a3f5f"},"hovermode":"closest","hoverlabel":{"align":"left"},"paper_bgcolor":"white","plot_bgcolor":"#E5ECF6","polar":{"bgcolor":"#E5ECF6","angularaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"radialaxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"ternary":{"bgcolor":"#E5ECF6","aaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"baxis":{"gridcolor":"white","linecolor":"white","ticks":""},"caxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"coloraxis":{"colorbar":{"outlinewidth":0,"ticks":""}},"colorscale":{"sequential":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"sequentialminus":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"diverging":[[0,"#8e0152"],[0.1,"#c51b7d"],[0.2,"#de77ae"],[0.3,"#f1b6da"],[0.4,"#fde0ef"],[0.5,"#f7f7f7"],[0.6,"#e6f5d0"],[0.7,"#b8e186"],[0.8,"#7fbc41"],[0.9,"#4d9221"],[1,"#276419"]]},"xaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"yaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"scene":{"xaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"yaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"zaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2}},"shapedefaults":{"line":{"color":"#2a3f5f"}},"annotationdefaults":{"arrowcolor":"#2a3f5f","arrowhead":0,"arrowwidth":1},"geo":{"bgcolor":"white","landcolor":"#E5ECF6","subunitcolor":"white","showland":true,"showlakes":true,"lakecolor":"white"},"title":{"x":0.05},"mapbox":{"style":"light"}}},"shapes":[{"line":{"color":"gray","dash":"dash","width":1},"type":"line","x0":0,"x1":1,"xref":"x domain","y0":1015635151,"y1":1015635151,"yref":"y"}],"annotations":[{"font":{"color":"gray","size":12},"showarrow":false,"text":"The Swedish Culturomics Gigaword Corpus (Rødven-Eide et al., 2016)","x":0,"xanchor":"left","xref":"x domain","y":1015635151,"yanchor":"bottom","yref":"y"}],"title":{"text":"Number of Tokens Over Time"},"xaxis":{"title":{"text":"Date"}},"yaxis":{"title":{"text":"Number of Tokens (Llama 3)"},"tickformat":".2s","ticksuffix":""},"hovermode":"closest","width":600,"height":400,"showlegend":false,"plot_bgcolor":"rgba(0,0,0,0)","paper_bgcolor":"rgba(0,0,0,0)"}, {"responsive": true} ) }; </script> </div>
6
  </body>
7
  </html>
 
2
  <head><meta charset="utf-8" /></head>
3
  <body>
4
  <div> <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
5
+ <script charset="utf-8" src="https://cdn.plot.ly/plotly-3.3.1.min.js" integrity="sha256-4rD3fugVb/nVJYUv5Ky3v+fYXoouHaBSP20WIJuEiWg=" crossorigin="anonymous"></script> <div id="a3a5745b-6c52-474b-8621-bca78f93d4cc" class="plotly-graph-div" style="height:400px; width:600px;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("a3a5745b-6c52-474b-8621-bca78f93d4cc")) { Plotly.newPlot( "a3a5745b-6c52-474b-8621-bca78f93d4cc", [{"hovertemplate":"%{text}\u003cextra\u003e\u003c\u002fextra\u003e","line":{"color":"#DC2626","width":3},"marker":{"color":"#DC2626","size":5},"mode":"lines+markers","name":"Tokens","text":["Date: 2026-04-11\u003cbr\u003eTokens: 921.60k\u003cbr\u003eSamples: 505\u003cbr\u003eCommit: c9d3e757\u003cbr\u003eMessage: Add Swedish laws from 1800 (#12)","Date: 2026-04-14\u003cbr\u003eTokens: 18.43M\u003cbr\u003eChange: +17.51M\u003cbr\u003eSamples: 2,629\u003cbr\u003eCommit: 05eb38dd\u003cbr\u003eMessage: Add Dalpilen 1860's (#14)","Date: 2026-05-30\u003cbr\u003eTokens: 3.21G\u003cbr\u003eChange: +3.20G\u003cbr\u003eSamples: 187,173\u003cbr\u003eCommit: 2ed5aaab\u003cbr\u003eMessage: Add multiple datasets from sprakbanken (#22)","Date: 2026-07-09\u003cbr\u003eTokens: 7.94G\u003cbr\u003eChange: +4.73G\u003cbr\u003eSamples: 606,513\u003cbr\u003eCommit: b8551650\u003cbr\u003eMessage: squashed commits to ensure 'tokens_over_time' plot renders correctly (no dip)"],"x":["2026-04-11T10:09:59+00:00","2026-04-14T10:29:38+00:00","2026-05-30T09:40:28+00:00","2026-07-09T21:14:59+02:00"],"y":[921603,18433592,3214465209,7943159707],"type":"scatter"}], {"template":{"data":{"histogram2dcontour":[{"type":"histogram2dcontour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"choropleth":[{"type":"choropleth","colorbar":{"outlinewidth":0,"ticks":""}}],"histogram2d":[{"type":"histogram2d","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"heatmap":[{"type":"heatmap","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"contourcarpet":[{"type":"contourcarpet","colorbar":{"outlinewidth":0,"ticks":""}}],"contour":[{"type":"contour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"surface":[{"type":"surface","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"mesh3d":[{"type":"mesh3d","colorbar":{"outlinewidth":0,"ticks":""}}],"scatter":[{"fillpattern":{"fillmode":"overlay","size":10,"solidity":0.2},"type":"scatter"}],"parcoords":[{"type":"parcoords","line":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolargl":[{"type":"scatterpolargl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"bar":[{"error_x":{"color":"#2a3f5f"},"error_y":{"color":"#2a3f5f"},"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"bar"}],"scattergeo":[{"type":"scattergeo","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolar":[{"type":"scatterpolar","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"histogram":[{"marker":{"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"histogram"}],"scattergl":[{"type":"scattergl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatter3d":[{"type":"scatter3d","line":{"colorbar":{"outlinewidth":0,"ticks":""}},"marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermap":[{"type":"scattermap","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermapbox":[{"type":"scattermapbox","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterternary":[{"type":"scatterternary","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattercarpet":[{"type":"scattercarpet","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"carpet":[{"aaxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"baxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"type":"carpet"}],"table":[{"cells":{"fill":{"color":"#EBF0F8"},"line":{"color":"white"}},"header":{"fill":{"color":"#C8D4E3"},"line":{"color":"white"}},"type":"table"}],"barpolar":[{"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"barpolar"}],"pie":[{"automargin":true,"type":"pie"}]},"layout":{"autotypenumbers":"strict","colorway":["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],"font":{"color":"#2a3f5f"},"hovermode":"closest","hoverlabel":{"align":"left"},"paper_bgcolor":"white","plot_bgcolor":"#E5ECF6","polar":{"bgcolor":"#E5ECF6","angularaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"radialaxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"ternary":{"bgcolor":"#E5ECF6","aaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"baxis":{"gridcolor":"white","linecolor":"white","ticks":""},"caxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"coloraxis":{"colorbar":{"outlinewidth":0,"ticks":""}},"colorscale":{"sequential":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"sequentialminus":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"diverging":[[0,"#8e0152"],[0.1,"#c51b7d"],[0.2,"#de77ae"],[0.3,"#f1b6da"],[0.4,"#fde0ef"],[0.5,"#f7f7f7"],[0.6,"#e6f5d0"],[0.7,"#b8e186"],[0.8,"#7fbc41"],[0.9,"#4d9221"],[1,"#276419"]]},"xaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"yaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"scene":{"xaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"yaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"zaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2}},"shapedefaults":{"line":{"color":"#2a3f5f"}},"annotationdefaults":{"arrowcolor":"#2a3f5f","arrowhead":0,"arrowwidth":1},"geo":{"bgcolor":"white","landcolor":"#E5ECF6","subunitcolor":"white","showland":true,"showlakes":true,"lakecolor":"white"},"title":{"x":0.05},"mapbox":{"style":"light"}}},"shapes":[{"line":{"color":"gray","dash":"dash","width":1},"type":"line","x0":0,"x1":1,"xref":"x domain","y0":1015635151,"y1":1015635151,"yref":"y"}],"annotations":[{"font":{"color":"gray","size":12},"showarrow":false,"text":"The Swedish Culturomics Gigaword Corpus (Rødven-Eide et al., 2016)","x":0,"xanchor":"left","xref":"x domain","y":1015635151,"yanchor":"bottom","yref":"y"}],"title":{"text":"Number of Tokens Over Time"},"xaxis":{"title":{"text":"Date"}},"yaxis":{"title":{"text":"Number of Tokens (Llama 3)"},"tickformat":".2s","ticksuffix":""},"hovermode":"closest","width":600,"height":400,"showlegend":false,"plot_bgcolor":"rgba(0,0,0,0)","paper_bgcolor":"rgba(0,0,0,0)"}, {"responsive": true} ) }; </script> </div>
6
  </body>
7
  </html>
images/tokens_over_time.svg CHANGED
pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
  [project]
2
  name = "dynaword"
3
- version = "0.0.6"
4
  description = "project code for the Swedish dynaword project"
5
  readme = "README.md"
6
  requires-python = ">=3.12,<3.13"
 
1
  [project]
2
  name = "dynaword"
3
+ version = "0.0.7"
4
  description = "project code for the Swedish dynaword project"
5
  readme = "README.md"
6
  requires-python = ">=3.12,<3.13"
test_results.log ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ============================= test session starts ==============================
2
+ platform darwin -- Python 3.12.9, pytest-9.0.2, pluggy-1.6.0
3
+ rootdir: /Users/gustavidunsloth/Documents/Data Science/dynaword-extractor/swedish-dynaword
4
+ configfile: pyproject.toml
5
+ plugins: anyio-4.12.1, timeout-2.4.0
6
+ collected 148 items
7
+
8
+ src/tests/test_dataset_schema.py ................................ [ 21%]
9
+ src/tests/test_datasheets.py ........................................... [ 50%]
10
+ ..................................... [ 75%]
11
+ src/tests/test_load.py .. [ 77%]
12
+ src/tests/test_quality/test_duplicates.py ................s [ 88%]
13
+ src/tests/test_quality/test_short_texts.py ................ [ 99%]
14
+ src/tests/test_unique_ids.py . [100%]
15
+
16
+ ================== 147 passed, 1 skipped in 290.15s (0:04:50) ==================
uv.lock CHANGED
@@ -289,7 +289,7 @@ wheels = [
289
 
290
  [[package]]
291
  name = "dynaword"
292
- version = "0.0.5"
293
  source = { editable = "." }
294
  dependencies = [
295
  { name = "datasets" },
 
289
 
290
  [[package]]
291
  name = "dynaword"
292
+ version = "0.0.7"
293
  source = { editable = "." }
294
  dependencies = [
295
  { name = "datasets" },