Datasets:
Tasks:
Text Generation
Formats:
parquet
Sub-tasks:
language-modeling
Languages:
Danish
Size:
1M - 10M
License:
KennethEnevoldsen
commited on
restructure-datasets (#11)
Browse files- docs: added minimal contribution guidelines (e76be1c45619b143b066507d259198f02237aafb)
- restructure columns (f1e02345614f8300b0f5f58973bfafa9d287ee13)
- cleanup (8d121344b43c6cdf136b7ef8e533ebf3775f29e0)
- bumped version (038a8e7e6b370f986ee6bf8644d6eab3f82c5202)
- .gitignore +1 -0
- CONTRIBUTING.md +20 -0
- data/adl/adl.parquet +2 -2
- data/botxt/botxt.parquet +2 -2
- data/dannet/dannet.parquet +2 -2
- data/depbank/depbank.parquet +2 -2
- data/ep/ep.parquet +2 -2
- data/ft/ft.parquet +2 -2
- data/gutenberg/gutenberg.parquet +2 -2
- data/hest/hest.parquet +2 -2
- data/jvj/jvj.parquet +2 -2
- data/naat/naat.parquet +2 -2
- data/relig/relig.parquet +2 -2
- data/retsinformationdk/retsinformationdk.parquet +2 -2
- data/retspraksis/retspraksis.parquet +2 -2
- data/skat/skat.parquet +2 -2
- data/spont/spont.parquet +2 -2
- data/synne/synne.parquet +2 -2
- data/tv2r/tv2r.parquet +2 -2
- data/wiki/wiki.parquet +2 -2
- data/wikibooks/wikibooks.parquet +2 -2
- data/wikisource/wikisource.parquet +2 -2
- pyproject.toml +1 -1
- scripts/load_dataset.py +0 -6
.gitignore
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
# Python
|
2 |
__pycache__/*
|
3 |
*.pyc
|
|
|
|
1 |
# Python
|
2 |
__pycache__/*
|
3 |
*.pyc
|
4 |
+
tmp.py
|
CONTRIBUTING.md
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Working with dataset locally
|
2 |
+
|
3 |
+
A huggingface datasets repository is a GitHub repository like any other. You can simply download it like so:
|
4 |
+
|
5 |
+
```bash
|
6 |
+
git clone https://huggingface.co/datasets/danish-foundation-models/danish-gigaword-2
|
7 |
+
cd danish-gigaword-2
|
8 |
+
```
|
9 |
+
|
10 |
+
You can the work with the dataset locally like so:
|
11 |
+
|
12 |
+
```py
|
13 |
+
from datasets import load_dataset
|
14 |
+
|
15 |
+
name = "../." # instead of "danish-foundation-models/danish-gigaword-2"
|
16 |
+
dataset = load_dataset("../.", split="train")
|
17 |
+
# make transformations here
|
18 |
+
```
|
19 |
+
|
20 |
+
> Note: While it is local Huggingface still uses a cache, therefore you might need to reset it after changes have been made to see that it works correctly. You can do this by deleting the cached files which you can locate using `dataset.cache_files`.
|
data/adl/adl.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5af9444529d92c37f35161829c652f8b928f9f1dfb5836065f320d1e1d698818
|
3 |
+
size 106401744
|
data/botxt/botxt.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec89c1dd57f1987dc6fe059a33a1d16b41b8c87439673a381f9671497f65b017
|
3 |
+
size 1344033
|
data/dannet/dannet.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9006617e35f568e7b7e4dacc87c4a490cf0a9170bd4e91488de77e00d3fb38c
|
3 |
+
size 4487008
|
data/depbank/depbank.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d4172e2ab4d7256ca5b76ad45b4d7326616e6679642056fdef20c5e3a8b1c62
|
3 |
+
size 392216
|
data/ep/ep.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f76e86335bd765b3ff3cf5ccdfe8f220e39349a0344fdf2b9918adbdd96aedeb
|
3 |
+
size 170796385
|
data/ft/ft.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e46276c575c7d9ddc30f44111206d250cb02473c992d0087bf0a9a5f4266da18
|
3 |
+
size 181926375
|
data/gutenberg/gutenberg.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1e8364195e60b64e285d0c1b8c4b6ae0da7a1b6165de77bb4fc4049c317b445c
|
3 |
+
size 12342492
|
data/hest/hest.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:258c9263b68b8d8573eab1eaa8221c557e9259aa1a222911fdff41f5cbbda66b
|
3 |
+
size 747678214
|
data/jvj/jvj.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5706ac4ddb20ce41ac198d3a603c80a7ab76e8a84d028bf145934a704401e17d
|
3 |
+
size 6824089
|
data/naat/naat.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc7c4b8640c72a20abba667d9630fe8d234266a7d42f50a9a20be28b1e0ecff6
|
3 |
+
size 544392
|
data/relig/relig.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d7c636a36f5eb1376ffebf2f1f83b82ed3d3860ef1f87b55c7f8ccf894fbc844
|
3 |
+
size 2001056
|
data/retsinformationdk/retsinformationdk.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9b2dfb08646a54df30fb1e2be1bbcd50a30ba02378ef35014345ae25959f2241
|
3 |
+
size 648816450
|
data/retspraksis/retspraksis.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f37fcd08d69abbf4329033d15b57efd3ce83dd9c6d55a339529888014fae827
|
3 |
+
size 87201467
|
data/skat/skat.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e4ced905b6b9629b2c7c62d94eda1413de90603f7f60c762837aee5fd182896e
|
3 |
+
size 164723225
|
data/spont/spont.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:149bb5b9f18a2883995bfd3584cee88079a8ececb4c5b6c51f778aa34092bcf6
|
3 |
+
size 1805872
|
data/synne/synne.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96a43b9bca159540a0b27c9a5488192cfb29c02e6e147f82e00a8a3204e9b9ce
|
3 |
+
size 74311
|
data/tv2r/tv2r.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ad0c74fae026560fec279e0a6fd7821bd1af18c864f53925cbe9fefd254f64d0
|
3 |
+
size 40341900
|
data/wiki/wiki.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:995d81c1316c5b2b8852c9c3a9404e0bd2de00ee0e79b86197b1fe20b6999469
|
3 |
+
size 241828019
|
data/wikibooks/wikibooks.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:478e98d6450700d5248be68bb9cc8739ec4395071a43ce71f5f69bdc3e15cac0
|
3 |
+
size 11262962
|
data/wikisource/wikisource.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c9c42ebd7754dd6cdda5259b8d927b581b463f998d3fb13aeeb755015b870cc4
|
3 |
+
size 9480324
|
pyproject.toml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
[project]
|
2 |
name = "danish-gigaword-2"
|
3 |
-
version = "1.0.
|
4 |
description = "project code for the danish gigaword 2 project"
|
5 |
readme = "README.md"
|
6 |
requires-python = ">=3.13"
|
|
|
1 |
[project]
|
2 |
name = "danish-gigaword-2"
|
3 |
+
version = "1.0.2"
|
4 |
description = "project code for the danish gigaword 2 project"
|
5 |
readme = "README.md"
|
6 |
requires-python = ">=3.13"
|
scripts/load_dataset.py
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
from datasets import load_dataset
|
2 |
-
|
3 |
-
name = "../." # "danish-foundation-models/danish-gigaword"
|
4 |
-
ds = load_dataset("../.", split = "train")
|
5 |
-
|
6 |
-
ds
|
|
|
|
|
|
|
|
|
|
|
|
|
|