Upload 6 files
Browse files- loading_script.py +6 -4
- mhp_full.json +2 -2
- test.json +0 -0
- train.json +2 -2
- valid.json +0 -0
loading_script.py
CHANGED
@@ -52,9 +52,11 @@ class redditMHP(datasets.GeneratorBasedBuilder):
|
|
52 |
features=datasets.Features(
|
53 |
{
|
54 |
"question": datasets.Value("string"),
|
55 |
-
"
|
56 |
-
"
|
57 |
-
"
|
|
|
|
|
58 |
}
|
59 |
),
|
60 |
supervised_keys=None,
|
@@ -92,7 +94,7 @@ class redditMHP(datasets.GeneratorBasedBuilder):
|
|
92 |
dataset = json.load(input_file)
|
93 |
idx = 0
|
94 |
for meta_data in dataset:
|
95 |
-
yield idx, {"question": meta_data["question"], "
|
96 |
idx += 1
|
97 |
|
98 |
|
|
|
52 |
features=datasets.Features(
|
53 |
{
|
54 |
"question": datasets.Value("string"),
|
55 |
+
"questionID": datasets.Value("string"),
|
56 |
+
"description": datasets.Value("string"),
|
57 |
+
"topic": datasets.Value("string"),
|
58 |
+
"answer": datasets.Value("string"),
|
59 |
+
"answerID": datasets.Value("string"),
|
60 |
}
|
61 |
),
|
62 |
supervised_keys=None,
|
|
|
94 |
dataset = json.load(input_file)
|
95 |
idx = 0
|
96 |
for meta_data in dataset:
|
97 |
+
yield idx, {"question": meta_data["question"], "description": meta_data["description"], "questionID":meta_data['post_id'], "answerID": meta_data["comment_id"], "answer": meta_data["answer"], "topic":meta_data["topic"]}
|
98 |
idx += 1
|
99 |
|
100 |
|
mhp_full.json
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:56200a3a3b0278fb8ccc9db5da8e4ffe1f7dad35db7070cede469d4763100059
|
3 |
+
size 16832501
|
test.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
train.json
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:a41f6fd11f5e809a256d14e5655a2cf02f04250e2f4d1c674984f1e5bd316a22
|
3 |
+
size 13517297
|
valid.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|