tillwenke commited on
Commit
097f786
1 Parent(s): ae1513b

switch to dask only with proper partition size

Browse files
README.md CHANGED
@@ -21,7 +21,6 @@ configs:
21
  - config_name: question-answer
22
  data_files:
23
  - split: test
24
- path: "data/test.parquet"
25
  ---
26
-
27
- Derives from https://www.kaggle.com/datasets/rtatman/questionanswer-dataset?resource=download we generated our own subset using `generate.py`.
 
21
  - config_name: question-answer
22
  data_files:
23
  - split: test
24
+ path: "data/test.parquet/*"
25
  ---
26
+ Derives from https://www.kaggle.com/datasets/rtatman/questionanswer-dataset?resource=download we generated our own subset using `generate.py`.
 
data/passages.parquet/part.0.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b94475e002695ada63d56ecc7a769e36b40cd565814600a0d8cb09d31c3370b8
3
- size 202740
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87733ad9242f56a08396e9a00e0551a1539f286ecf032d24ecff34dba4689a67
3
+ size 797357
data/passages.parquet/part.1.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2d6856418a9a52e72173e5f76001a8cae475a019ccf480b94729c55080f1ff71
3
- size 200292
 
 
 
 
data/passages.parquet/part.2.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:418ce71d54decd51e70ef756f8a5f01df6d7f6bde61d2c64911d1dd1878ca73e
3
- size 193067
 
 
 
 
data/passages.parquet/part.3.parquet DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:639fe3406b2a757d0ff0f0b534623f17cb7ae7ae14b544cd8b09cbb506ba22df
3
- size 211512
 
 
 
 
data/{test.parquet → test.parquet/part.0.parquet} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bde1b058cd5d9f19afb6af7a78f5e943e8651a4fc1e7e821c5a672909530ef4c
3
  size 54366
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8480d74e65ed193879cfe4549d4e9239cfef6dce0e0e82bde1f3a1a220837641
3
  size 54366
generate.py CHANGED
@@ -14,7 +14,7 @@ df = df.drop_duplicates(subset="question")
14
  df.index.name = "id"
15
 
16
  path_to_file = "./data/test.parquet"
17
- df.to_parquet(path_to_file)
18
 
19
  path_to_file = "./raw_data/text_data/S08*clean"
20
 
@@ -28,4 +28,4 @@ passages = passages.dropna()
28
  passages.index.name = "id"
29
 
30
  path_to_file = "./data/passages.parquet"
31
- dd.from_pandas(passages, npartitions=4).to_parquet(path_to_file)
 
14
  df.index.name = "id"
15
 
16
  path_to_file = "./data/test.parquet"
17
+ dd.from_pandas(df, npartitions=1).to_parquet(path_to_file)
18
 
19
  path_to_file = "./raw_data/text_data/S08*clean"
20
 
 
28
  passages.index.name = "id"
29
 
30
  path_to_file = "./data/passages.parquet"
31
+ dd.from_pandas(passages, npartitions=1).to_parquet(path_to_file)