tillwenke commited on
Commit
87c787b
1 Parent(s): 146c5e7

init with dataset as parquet

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +2 -0
  2. .gitignore +1 -0
  3. dataset/eval.parquet +3 -0
  4. dataset/passages.parquet/part.0.parquet +3 -0
  5. dataset/passages.parquet/part.1.parquet +3 -0
  6. dataset/passages.parquet/part.2.parquet +3 -0
  7. dataset/passages.parquet/part.3.parquet +3 -0
  8. generate.py +32 -0
  9. raw_data/S08_question_answer_pairs.txt +3 -0
  10. raw_data/S09_question_answer_pairs.txt +3 -0
  11. raw_data/S10_question_answer_pairs.txt +3 -0
  12. raw_data/text_data/S08_set1_a1.txt.clean +3 -0
  13. raw_data/text_data/S08_set1_a10.txt.clean +3 -0
  14. raw_data/text_data/S08_set1_a2.txt.clean +3 -0
  15. raw_data/text_data/S08_set1_a3.txt.clean +3 -0
  16. raw_data/text_data/S08_set1_a4.txt.clean +3 -0
  17. raw_data/text_data/S08_set1_a5.txt.clean +3 -0
  18. raw_data/text_data/S08_set1_a6.txt.clean +3 -0
  19. raw_data/text_data/S08_set1_a7.txt.clean +3 -0
  20. raw_data/text_data/S08_set1_a8.txt.clean +3 -0
  21. raw_data/text_data/S08_set1_a9.txt.clean +3 -0
  22. raw_data/text_data/S08_set1_topics.txt +3 -0
  23. raw_data/text_data/S08_set2_a1.txt.clean +3 -0
  24. raw_data/text_data/S08_set2_a10.txt.clean +3 -0
  25. raw_data/text_data/S08_set2_a2.txt.clean +3 -0
  26. raw_data/text_data/S08_set2_a3.txt.clean +3 -0
  27. raw_data/text_data/S08_set2_a4.txt.clean +3 -0
  28. raw_data/text_data/S08_set2_a5.txt.clean +3 -0
  29. raw_data/text_data/S08_set2_a6.txt.clean +3 -0
  30. raw_data/text_data/S08_set2_a7.txt.clean +3 -0
  31. raw_data/text_data/S08_set2_a8.txt.clean +3 -0
  32. raw_data/text_data/S08_set2_a9.txt.clean +3 -0
  33. raw_data/text_data/S08_set2_topics.txt +3 -0
  34. raw_data/text_data/S08_set3_a1.txt.clean +3 -0
  35. raw_data/text_data/S08_set3_a10.txt.clean +3 -0
  36. raw_data/text_data/S08_set3_a2.txt.clean +3 -0
  37. raw_data/text_data/S08_set3_a3.txt.clean +3 -0
  38. raw_data/text_data/S08_set3_a4.txt.clean +3 -0
  39. raw_data/text_data/S08_set3_a5.txt.clean +3 -0
  40. raw_data/text_data/S08_set3_a6.txt.clean +3 -0
  41. raw_data/text_data/S08_set3_a7.txt.clean +3 -0
  42. raw_data/text_data/S08_set3_a8.txt.clean +3 -0
  43. raw_data/text_data/S08_set3_a9.txt.clean +3 -0
  44. raw_data/text_data/S08_set3_topics.txt +3 -0
  45. raw_data/text_data/S08_set4_a1.txt.clean +3 -0
  46. raw_data/text_data/S08_set4_a10.txt.clean +3 -0
  47. raw_data/text_data/S08_set4_a2.txt.clean +3 -0
  48. raw_data/text_data/S08_set4_a3.txt.clean +3 -0
  49. raw_data/text_data/S08_set4_a4.txt.clean +3 -0
  50. raw_data/text_data/S08_set4_a5.txt.clean +3 -0
.gitattributes CHANGED
@@ -53,3 +53,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
+ # custom
57
+ raw_data/** filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ env/
dataset/eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fed023488fe0699d1a354039e4d30ecd585d8a6ef7c14acd40eace8e7044d811
3
+ size 54505
dataset/passages.parquet/part.0.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53217bf7a71d11d460b8d357983ca71d4b3208581772c7fffd05fde2ff5149a0
3
+ size 187304
dataset/passages.parquet/part.1.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e32bcb33113c371378529b6c962d4a2edff3a52aa6f1973863c70083f1da8e5c
3
+ size 189798
dataset/passages.parquet/part.2.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb10348d4de5b0d7c9f6ebd0362ab20e9152acd14e3fcf7653db0aa036d8305c
3
+ size 226515
dataset/passages.parquet/part.3.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b26a4513f1bae7b1f21c58f0e082c503af0b18732a89d6109fde8ca28eee4cec
3
+ size 213877
generate.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # from https://www.kaggle.com/datasets/rtatman/questionanswer-dataset/
2
+ import pandas as pd
3
+ import glob
4
+ import dask.dataframe as dd
5
+
6
+
7
+ path_to_file = "./raw_data/S08_question_answer_pairs.txt"
8
+
9
+ df = pd.read_csv(path_to_file, sep="\t")
10
+ df.rename(columns={"Question": "question", "Answer": "answer"}, inplace=True)
11
+ df = df[["question", "answer"]]
12
+ df = df.dropna()
13
+ df = df.drop_duplicates(subset="question")
14
+ path_to_file = "./dataseeval.parquet"
15
+
16
+ df.to_parquet(path_to_file)
17
+
18
+ path_to_file = "./raw_data/text_data/S08*clean"
19
+
20
+ s08 = glob.glob(path_to_file)
21
+ passages = pd.DataFrame(columns=["passage"])
22
+ for file in s08:
23
+ df = pd.read_csv(file, sep="\t", encoding="latin-1", index_col=False)
24
+ df.rename(columns={df.columns[0]: "passage"}, inplace=True)
25
+ passages = pd.concat([passages, df], axis=0, ignore_index=True)
26
+ passages = passages.dropna()
27
+ passages.index = passages.index.astype(str)
28
+
29
+
30
+ path_to_file = "./dataset/passages.parquet"
31
+
32
+ dd.from_pandas(passages, npartitions=4).to_parquet(path_to_file)
raw_data/S08_question_answer_pairs.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:521aa6a43007ed42468e57e82e1ca23866096cb914d8ab64a7d0915cc341a845
3
+ size 180552
raw_data/S09_question_answer_pairs.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9eb16c1f3640cabccdd1ce15f6d696a5ebb74f25a8fbf58f7ea1a349eaca404f
3
+ size 85360
raw_data/S10_question_answer_pairs.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d78a406286e786de492aafee905711bf6f51497332d79b181ef8c16bbf7b0048
3
+ size 166159
raw_data/text_data/S08_set1_a1.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e8f6fd7bc92c2757e068598daa87ca2ef2626817c6b352a076f50d38d2cf416
3
+ size 16833
raw_data/text_data/S08_set1_a10.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c26982400b0955cf173f9741047b39079be57eaefc49280b92a1d7798654ad00
3
+ size 8512
raw_data/text_data/S08_set1_a2.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9747df6f4e9b3c21500ce7b0cd89a7deda68acf3d93fd9c8f650c03afef09f01
3
+ size 22347
raw_data/text_data/S08_set1_a3.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8cf87fed8e91404359551723919acd7be49b6f9cf3a91222b197312f93d7f57
3
+ size 22389
raw_data/text_data/S08_set1_a4.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:133d6a20eae5d6b39268247edb137de5ee8d0852a6070f65c45ff14ae3285719
3
+ size 28456
raw_data/text_data/S08_set1_a5.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33c40f86c518874630e96335dd758ae690c84704ef4a2e2ca562fdd831e0a87b
3
+ size 58364
raw_data/text_data/S08_set1_a6.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1302bffca112b4ef873db5f36cee4bc1a0b570c48a0bf55374605bd3852f2941
3
+ size 68940
raw_data/text_data/S08_set1_a7.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ba5e20d0e9cfa4536b1fe84a27a8823d35fcad085c8e045475c90e3c8e30008
3
+ size 6772
raw_data/text_data/S08_set1_a8.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b140649ab63521c340c2a227dfc5e85a3da78fb6782c4ddd3ce7b5bad7c8dcd
3
+ size 21394
raw_data/text_data/S08_set1_a9.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5323c0ab48e499b165504195435a0a6566c601dbdd0ad775eed62da6d833748e
3
+ size 4639
raw_data/text_data/S08_set1_topics.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff5feac38687889d8a6047382cde60686e0d64eecceae6e2063b21d0ce498b58
3
+ size 75
raw_data/text_data/S08_set2_a1.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c340e13f7618b117d29347acea2684b919af9fa288ec41805c9109d62463a9f
3
+ size 23995
raw_data/text_data/S08_set2_a10.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:168d191618f8a052b2f912da4b5d8a5dda6b248435192e28c2bcc05977c0e41c
3
+ size 37022
raw_data/text_data/S08_set2_a2.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ef6772991a6bd6c1e8bc295563b0f6a142db71f1e17ee1ab99cc031796c8807
3
+ size 46592
raw_data/text_data/S08_set2_a3.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a406b7609dd8e468db845bba1e4f3824d5916462fad375ba12d5f4a27429ede4
3
+ size 17459
raw_data/text_data/S08_set2_a4.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0529e34013cdfa8630074e46aa62b2413c75ec4e462e58ee8ad0235542b68b1b
3
+ size 66893
raw_data/text_data/S08_set2_a5.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f56faf316085d02c9e5234ac540382117826454bbffb6ca3eefc707a56d71c21
3
+ size 14145
raw_data/text_data/S08_set2_a6.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dabb0ebb8f37acd1ae46ab26022baa6842f37e324aa85c679b0da7b5748f8dd0
3
+ size 57721
raw_data/text_data/S08_set2_a7.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c99d5fcdd30d1bf82f5ccb4ea8b41ad6eaf28a3e392530d0d8e56257f51f67df
3
+ size 62322
raw_data/text_data/S08_set2_a8.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5abbe6595528131fb2c43277a5d30815cd571d3564b65ee19bd869d7f9de1b73
3
+ size 38990
raw_data/text_data/S08_set2_a9.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bb26b41f5ea06ca4e60fb8fa84dd18a73170d170c84374e61605290265249c8
3
+ size 20873
raw_data/text_data/S08_set2_topics.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a2ecb2aa879dd70b3a989f00fa82b2294dac95dfaa305e614be8feea0bf0635
3
+ size 83
raw_data/text_data/S08_set3_a1.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10929d6616aed65a72c8b1ad4143847a805dc768dc685e2702e985b53e0f88a2
3
+ size 42088
raw_data/text_data/S08_set3_a10.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b06a29301fd8cf423aca3ee2f0cb5580a54b3a176964de2d21bd318bf326eb74
3
+ size 56824
raw_data/text_data/S08_set3_a2.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:952d2bff51a4a05ecd2a7b473099ae7906d6ec37aed1042f90729274c709a194
3
+ size 13979
raw_data/text_data/S08_set3_a3.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6676690c4189055a0dcfb1da70bdb6fdc594ba550e38e90d3aac9cfb3876bf52
3
+ size 15271
raw_data/text_data/S08_set3_a4.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57fcd6b91ab65befd3c795c19f1dc96e9e3dcf65f4a86a7c8f516db7461e1669
3
+ size 61174
raw_data/text_data/S08_set3_a5.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06e250367da5e7e13ae3e30cd59ffc94492e6f532ab2949f52ba1d3e15074a03
3
+ size 54232
raw_data/text_data/S08_set3_a6.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c9f76c6c129a3ae3eeb1ba097f4b9c4e86a8796920c343d650547bb5e5f9d0f
3
+ size 21539
raw_data/text_data/S08_set3_a7.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f7c18d59386eea37022f4c6b691f4241c97e483f54feae9793717890b4f0e67
3
+ size 76321
raw_data/text_data/S08_set3_a8.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:049d12a619bec69b10707c8b02b9d925aa7f7205ae0963d2f78ad9f5bca4e869
3
+ size 49528
raw_data/text_data/S08_set3_a9.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a820f4e16c7582d44fd9b7ced3a8e8b5e6afc815d5b7566fe0052d94306c1c45
3
+ size 38122
raw_data/text_data/S08_set3_topics.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4094498dcf30c9e2d9f61dcb7a7b7acffb5327008a98437bba41af55f96be9f6
3
+ size 153
raw_data/text_data/S08_set4_a1.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5f1a9dc208750784c136c5269cafbbcc283844628ca42218029b9391cd01151
3
+ size 34034
raw_data/text_data/S08_set4_a10.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:891ae62c3003662da6395757458e8e9db15d241a01cc73d1ab04c60597aab7db
3
+ size 6191
raw_data/text_data/S08_set4_a2.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:231f3f9cdee30e2514af2947d89f78e3014b9bd24494a8c22263a8556f184a60
3
+ size 15476
raw_data/text_data/S08_set4_a3.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d698b90c3d9ebaddcd1e254394519e34c750fb475c80af4946f4b4dbed4ad3b6
3
+ size 55829
raw_data/text_data/S08_set4_a4.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41e948960048fb9f19251f6dd71d5fc2772de2c8e7213e6db2ce243022afba99
3
+ size 32104
raw_data/text_data/S08_set4_a5.txt.clean ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48c2365abf6b075d897c101cb517506edbbe66b46836cba7979097af361208d5
3
+ size 1903