KennethEnevoldsen commited on
Commit
3d99d06
·
unverified ·
1 Parent(s): 712c5ea

Moved data to seperate folder

Browse files
Files changed (45) hide show
  1. README.md +40 -23
  2. {adl → data/adl}/adl.md +0 -0
  3. {adl → data/adl}/adl.parquet +0 -0
  4. {botxt → data/botxt}/botxt.md +0 -0
  5. {botxt → data/botxt}/botxt.parquet +0 -0
  6. {dannet → data/dannet}/dannet.md +0 -0
  7. {dannet → data/dannet}/dannet.parquet +0 -0
  8. {depbank → data/depbank}/depbank.md +0 -0
  9. {depbank → data/depbank}/depbank.parquet +0 -0
  10. {ep → data/ep}/ep.md +0 -0
  11. {ep → data/ep}/ep.parquet +0 -0
  12. {ft → data/ft}/ft.md +0 -0
  13. {ft → data/ft}/ft.parquet +0 -0
  14. {gutenberg → data/gutenberg}/gutenberg.md +0 -0
  15. {gutenberg → data/gutenberg}/gutenberg.parquet +0 -0
  16. {hest → data/hest}/hest.md +0 -0
  17. {hest → data/hest}/hest.parquet +0 -0
  18. {jvj → data/jvj}/jvj.md +0 -0
  19. {jvj → data/jvj}/jvj.parquet +0 -0
  20. {naat → data/naat}/naat.md +0 -0
  21. {naat → data/naat}/naat.parquet +0 -0
  22. {relig → data/relig}/relig.md +0 -0
  23. {relig → data/relig}/relig.parquet +0 -0
  24. {retsinformationdk → data/retsinformationdk}/retsinformationdk.md +0 -0
  25. {retsinformationdk → data/retsinformationdk}/retsinformationdk.parquet +0 -0
  26. {retspraksis → data/retspraksis}/retspraksis.md +0 -0
  27. {retspraksis → data/retspraksis}/retspraksis.parquet +0 -0
  28. {skat → data/skat}/skat.md +0 -0
  29. {skat → data/skat}/skat.parquet +0 -0
  30. {spont → data/spont}/spont.md +0 -0
  31. {spont → data/spont}/spont.parquet +0 -0
  32. {synne → data/synne}/synne.md +0 -0
  33. {synne → data/synne}/synne.parquet +0 -0
  34. {tv2r → data/tv2r}/tv2r.md +0 -0
  35. {tv2r → data/tv2r}/tv2r.parquet +0 -0
  36. {wiki → data/wiki}/wiki.md +0 -0
  37. {wiki → data/wiki}/wiki.parquet +0 -0
  38. {wikibooks → data/wikibooks}/wikibooks.md +0 -0
  39. {wikibooks → data/wikibooks}/wikibooks.parquet +0 -0
  40. {wikisource → data/wikisource}/wikisource.md +0 -0
  41. {wikisource → data/wikisource}/wikisource.parquet +0 -0
  42. makefile +5 -2
  43. pyproject.toml +3 -3
  44. scripts/bump_version.py +16 -0
  45. uv.lock +13 -2
README.md CHANGED
@@ -4,87 +4,87 @@ configs:
4
  - config_name: default
5
  data_files:
6
  - split: train
7
- path: '*/*.parquet'
8
  - config_name: retsinformationdk
9
  data_files:
10
  - split: train
11
- path: retsinformationdk/*.parquet
12
  - config_name: ep
13
  data_files:
14
  - split: train
15
- path: ep/*.parquet
16
  - config_name: ft
17
  data_files:
18
  - split: train
19
- path: ft/*.parquet
20
  - config_name: wikisource
21
  data_files:
22
  - split: train
23
- path: wikisource/*.parquet
24
  - config_name: spont
25
  data_files:
26
  - split: train
27
- path: spont/*.parquet
28
  - config_name: tv2r
29
  data_files:
30
  - split: train
31
- path: tv2r/*.parquet
32
  - config_name: adl
33
  data_files:
34
  - split: train
35
- path: adl/*.parquet
36
  - config_name: hest
37
  data_files:
38
  - split: train
39
- path: hest/*.parquet
40
  - config_name: skat
41
  data_files:
42
  - split: train
43
- path: skat/*.parquet
44
  - config_name: dannet
45
  data_files:
46
  - split: train
47
- path: dannet/*.parquet
48
  - config_name: retspraksis
49
  data_files:
50
  - split: train
51
- path: retspraksis/*.parquet
52
  - config_name: wikibooks
53
  data_files:
54
  - split: train
55
- path: wikibooks/*.parquet
56
  - config_name: jvj
57
  data_files:
58
  - split: train
59
- path: jvj/*.parquet
60
  - config_name: gutenberg
61
  data_files:
62
  - split: train
63
- path: gutenberg/*.parquet
64
  - config_name: botxt
65
  data_files:
66
  - split: train
67
- path: botxt/*.parquet
68
  - config_name: depbank
69
  data_files:
70
  - split: train
71
- path: depbank/*.parquet
72
  - config_name: naat
73
  data_files:
74
  - split: train
75
- path: naat/*.parquet
76
  - config_name: synne
77
  data_files:
78
  - split: train
79
- path: synne/*.parquet
80
  - config_name: wiki
81
  data_files:
82
  - split: train
83
- path: wiki/*.parquet
84
  - config_name: relig
85
  data_files:
86
  - split: train
87
- path: relig/*.parquet
88
  annotations_creators:
89
  - no-annotation
90
  language_creators:
@@ -113,7 +113,7 @@ language_bcp47:
113
  *License*: See the respective dataset
114
 
115
  ## Table of Contents
116
- - [Danish Gigaword Corpus](#danish-gigaword-corpus)
117
  - [Table of Contents](#table-of-contents)
118
  - [Dataset Description](#dataset-description)
119
  - [Dataset Summary](#dataset-summary)
@@ -126,7 +126,6 @@ language_bcp47:
126
  - [Source Data](#source-data)
127
  - [Additional Information](#additional-information)
128
  - [Citation Information](#citation-information)
129
- - [Contributions](#contributions)
130
 
131
  ## Dataset Description
132
 
@@ -299,3 +298,21 @@ The original version of Danish Gigawords was created as a part of the following
299
  publisher = {NEALT}
300
  }
301
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  - config_name: default
5
  data_files:
6
  - split: train
7
+ path: 'data/*/*.parquet'
8
  - config_name: retsinformationdk
9
  data_files:
10
  - split: train
11
+ path: data/retsinformationdk/*.parquet
12
  - config_name: ep
13
  data_files:
14
  - split: train
15
+ path: data/ep/*.parquet
16
  - config_name: ft
17
  data_files:
18
  - split: train
19
+ path: data/ft/*.parquet
20
  - config_name: wikisource
21
  data_files:
22
  - split: train
23
+ path: data/wikisource/*.parquet
24
  - config_name: spont
25
  data_files:
26
  - split: train
27
+ path: data/spont/*.parquet
28
  - config_name: tv2r
29
  data_files:
30
  - split: train
31
+ path: data/tv2r/*.parquet
32
  - config_name: adl
33
  data_files:
34
  - split: train
35
+ path: data/adl/*.parquet
36
  - config_name: hest
37
  data_files:
38
  - split: train
39
+ path: data/hest/*.parquet
40
  - config_name: skat
41
  data_files:
42
  - split: train
43
+ path: data/skat/*.parquet
44
  - config_name: dannet
45
  data_files:
46
  - split: train
47
+ path: data/dannet/*.parquet
48
  - config_name: retspraksis
49
  data_files:
50
  - split: train
51
+ path: data/retspraksis/*.parquet
52
  - config_name: wikibooks
53
  data_files:
54
  - split: train
55
+ path: data/wikibooks/*.parquet
56
  - config_name: jvj
57
  data_files:
58
  - split: train
59
+ path: data/jvj/*.parquet
60
  - config_name: gutenberg
61
  data_files:
62
  - split: train
63
+ path: data/gutenberg/*.parquet
64
  - config_name: botxt
65
  data_files:
66
  - split: train
67
+ path: data/botxt/*.parquet
68
  - config_name: depbank
69
  data_files:
70
  - split: train
71
+ path: data/depbank/*.parquet
72
  - config_name: naat
73
  data_files:
74
  - split: train
75
+ path: data/naat/*.parquet
76
  - config_name: synne
77
  data_files:
78
  - split: train
79
+ path: data/synne/*.parquet
80
  - config_name: wiki
81
  data_files:
82
  - split: train
83
+ path: data/wiki/*.parquet
84
  - config_name: relig
85
  data_files:
86
  - split: train
87
+ path: data/relig/*.parquet
88
  annotations_creators:
89
  - no-annotation
90
  language_creators:
 
113
  *License*: See the respective dataset
114
 
115
  ## Table of Contents
116
+ - [Danish Gigaword 2](#danish-gigaword-2)
117
  - [Table of Contents](#table-of-contents)
118
  - [Dataset Description](#dataset-description)
119
  - [Dataset Summary](#dataset-summary)
 
126
  - [Source Data](#source-data)
127
  - [Additional Information](#additional-information)
128
  - [Citation Information](#citation-information)
 
129
 
130
  ## Dataset Description
131
 
 
298
  publisher = {NEALT}
299
  }
300
  ```
301
+
302
+
303
+ <!--
304
+ Todo:
305
+
306
+ add tests
307
+ - unique ids
308
+ - valid metadata
309
+
310
+ add ci:
311
+ - summary statistics
312
+ - tables
313
+
314
+ prettify:
315
+ - license as independent column
316
+ - ensure pretty_name is standard
317
+ - potentially remove some columns
318
+ -->
{adl → data/adl}/adl.md RENAMED
File without changes
{adl → data/adl}/adl.parquet RENAMED
File without changes
{botxt → data/botxt}/botxt.md RENAMED
File without changes
{botxt → data/botxt}/botxt.parquet RENAMED
File without changes
{dannet → data/dannet}/dannet.md RENAMED
File without changes
{dannet → data/dannet}/dannet.parquet RENAMED
File without changes
{depbank → data/depbank}/depbank.md RENAMED
File without changes
{depbank → data/depbank}/depbank.parquet RENAMED
File without changes
{ep → data/ep}/ep.md RENAMED
File without changes
{ep → data/ep}/ep.parquet RENAMED
File without changes
{ft → data/ft}/ft.md RENAMED
File without changes
{ft → data/ft}/ft.parquet RENAMED
File without changes
{gutenberg → data/gutenberg}/gutenberg.md RENAMED
File without changes
{gutenberg → data/gutenberg}/gutenberg.parquet RENAMED
File without changes
{hest → data/hest}/hest.md RENAMED
File without changes
{hest → data/hest}/hest.parquet RENAMED
File without changes
{jvj → data/jvj}/jvj.md RENAMED
File without changes
{jvj → data/jvj}/jvj.parquet RENAMED
File without changes
{naat → data/naat}/naat.md RENAMED
File without changes
{naat → data/naat}/naat.parquet RENAMED
File without changes
{relig → data/relig}/relig.md RENAMED
File without changes
{relig → data/relig}/relig.parquet RENAMED
File without changes
{retsinformationdk → data/retsinformationdk}/retsinformationdk.md RENAMED
File without changes
{retsinformationdk → data/retsinformationdk}/retsinformationdk.parquet RENAMED
File without changes
{retspraksis → data/retspraksis}/retspraksis.md RENAMED
File without changes
{retspraksis → data/retspraksis}/retspraksis.parquet RENAMED
File without changes
{skat → data/skat}/skat.md RENAMED
File without changes
{skat → data/skat}/skat.parquet RENAMED
File without changes
{spont → data/spont}/spont.md RENAMED
File without changes
{spont → data/spont}/spont.parquet RENAMED
File without changes
{synne → data/synne}/synne.md RENAMED
File without changes
{synne → data/synne}/synne.parquet RENAMED
File without changes
{tv2r → data/tv2r}/tv2r.md RENAMED
File without changes
{tv2r → data/tv2r}/tv2r.parquet RENAMED
File without changes
{wiki → data/wiki}/wiki.md RENAMED
File without changes
{wiki → data/wiki}/wiki.parquet RENAMED
File without changes
{wikibooks → data/wikibooks}/wikibooks.md RENAMED
File without changes
{wikibooks → data/wikibooks}/wikibooks.parquet RENAMED
File without changes
{wikisource → data/wikisource}/wikisource.md RENAMED
File without changes
{wikisource → data/wikisource}/wikisource.parquet RENAMED
File without changes
makefile CHANGED
@@ -1,2 +1,5 @@
1
- make install:
2
- uv sync
 
 
 
 
1
+ install:
2
+ uv sync
3
+
4
+ bump-version:
5
+ uv run scripts/bump_version.py
pyproject.toml CHANGED
@@ -1,7 +1,7 @@
1
  [project]
2
- name = "danish-gigaword"
3
- version = "1.0.0"
4
  description = "project code for the danish gigaword"
5
  readme = "README.md"
6
  requires-python = ">=3.13"
7
- dependencies = ["datasets>=3.0.0", "numpy>=2.2.0"]
 
1
  [project]
2
+ name = "danish-gigaword-2"
3
+ version = "1.0.1"
4
  description = "project code for the danish gigaword"
5
  readme = "README.md"
6
  requires-python = ">=3.13"
7
+ dependencies = ["datasets>=3.0.0", "numpy>=2.2.0", "toml>=0.10.2"]
scripts/bump_version.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from packaging.version import Version
2
+ from pathlib import Path
3
+
4
+ import toml
5
+
6
+ c_file = Path(__file__)
7
+ pyproject = c_file.parent.parent / "pyproject.toml"
8
+
9
+
10
+ with pyproject.open("r") as f:
11
+ data = toml.load(f)
12
+ version = Version(data["project"]["version"])
13
+ data["project"]["version"] = str(Version(f"{version.major}.{version.minor}.{version.micro + 1}"))
14
+
15
+ with pyproject.open("w") as f:
16
+ toml.dump(data, f)
uv.lock CHANGED
@@ -106,18 +106,20 @@ wheels = [
106
  ]
107
 
108
  [[package]]
109
- name = "danish-gigaword"
110
- version = "1.0.0"
111
  source = { virtual = "." }
112
  dependencies = [
113
  { name = "datasets" },
114
  { name = "numpy" },
 
115
  ]
116
 
117
  [package.metadata]
118
  requires-dist = [
119
  { name = "datasets", specifier = ">=3.0.0" },
120
  { name = "numpy", specifier = ">=2.2.0" },
 
121
  ]
122
 
123
  [[package]]
@@ -440,6 +442,15 @@ wheels = [
440
  { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050 },
441
  ]
442
 
 
 
 
 
 
 
 
 
 
443
  [[package]]
444
  name = "tqdm"
445
  version = "4.67.1"
 
106
  ]
107
 
108
  [[package]]
109
+ name = "danish-gigaword-2"
110
+ version = "1.0.1"
111
  source = { virtual = "." }
112
  dependencies = [
113
  { name = "datasets" },
114
  { name = "numpy" },
115
+ { name = "toml" },
116
  ]
117
 
118
  [package.metadata]
119
  requires-dist = [
120
  { name = "datasets", specifier = ">=3.0.0" },
121
  { name = "numpy", specifier = ">=2.2.0" },
122
+ { name = "toml", specifier = ">=0.10.2" },
123
  ]
124
 
125
  [[package]]
 
442
  { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050 },
443
  ]
444
 
445
+ [[package]]
446
+ name = "toml"
447
+ version = "0.10.2"
448
+ source = { registry = "https://pypi.org/simple" }
449
+ sdist = { url = "https://files.pythonhosted.org/packages/be/ba/1f744cdc819428fc6b5084ec34d9b30660f6f9daaf70eead706e3203ec3c/toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f", size = 22253 }
450
+ wheels = [
451
+ { url = "https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b", size = 16588 },
452
+ ]
453
+
454
  [[package]]
455
  name = "tqdm"
456
  version = "4.67.1"