KennethEnevoldsen commited on
Commit
defae1c
·
verified ·
1 Parent(s): 9269fba

restructure-datasets (#11)

Browse files

- docs: added minimal contribution guidelines (e76be1c45619b143b066507d259198f02237aafb)
- restructure columns (f1e02345614f8300b0f5f58973bfafa9d287ee13)
- cleanup (8d121344b43c6cdf136b7ef8e533ebf3775f29e0)
- bumped version (038a8e7e6b370f986ee6bf8644d6eab3f82c5202)

.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:d51c291d1cf6461a1e59dd45dfd63ee39a5c62cd3c2fd05877489d50aaa5115e
3
- size 106409966
 
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:b42642896dfda21b23bb8e8ef5ba65f878ebfa5fec2f6d57aec1e06778c75bbf
3
- size 1353171
 
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:905c2441a4c242e24d370775e9e035df3c67a7a1d797a615297cb6a1bbf51a96
3
- size 4743422
 
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:863aac5735bee6995b665864ea355b488e35bb2cca696ea340d8febc653b8886
3
- size 394917
 
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:85c8eb6954522c757ee3e410f7f277a74ecedd8e7507ef00a698a654dc8bea20
3
- size 171150568
 
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:31775c6e84a1542897641712e39d4c6cde2aa69673d7875c6a39f3148c08e0fb
3
- size 182049520
 
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:973df5121d3da73a5915f6dd1da0290ffbaece92b2c7c4dec562155974c0076f
3
- size 12361984
 
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:9b85d658074ebec3eb95da8f8e522d83707b646b5f3b8b706279496eec3b31c3
3
- size 748670544
 
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:7a524aafe8fe1ba86bc09c091b10aacf55e558124fef59e68f60bed03816636a
3
- size 6829395
 
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:6958784a0c4039e9357dee0dedc6bd010e7dd3573d2d9a4db45ce5e4a6608feb
3
- size 545253
 
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:ba59db9efa6756fd6306380c39e9f25b50c99ddb6b7c0c2391e417d95d0af6da
3
- size 2003050
 
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:69df3e71d482c746854535710ffb57c9ba3c9ac633931222e8be84d0e67cc22c
3
- size 651256719
 
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:28f86c894204d6c1348a5fdfae7b69d1d355ba311e42d70fd669d52138b95d3a
3
- size 87674092
 
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:5f87f38f90553725c889080b3def8e24dadd3b2eaee28b43bae2a19493cf2143
3
- size 165069920
 
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:0ac515b1dedc78fb9123bffbab2cf3c0fe1e126a070ad342d7d0c707096e838b
3
- size 1814921
 
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:701bf010bca88dd4722ffa72404b91e24703bd9552003371771bf1823dc58138
3
- size 77042
 
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:e5cc87b9de1c11ef580d939d1d877b5553d3c75aa33d0f2e280986b8787900a5
3
- size 40686259
 
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:41bb02c5b10290746b00750db69c565bfe25fda2529efcc603f108d820dc6c13
3
- size 242917206
 
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:5984554e9c048e06cd156903a345178dc18a95572e3b12fb4c6e6266bcc87fa5
3
- size 11282733
 
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:a4ee7ec0bb3147f06617c94a8951055a5a806c7917de229d6b2ec2df9c4c0b73
3
- size 9488335
 
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.1"
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