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
@@ -40,8 +40,8 @@ class redditMHP(datasets.GeneratorBasedBuilder):
|
|
40 |
|
41 |
BUILDER_CONFIGS = [
|
42 |
datasets.BuilderConfig(
|
43 |
-
name="",
|
44 |
-
description="",
|
45 |
version=VERSION,
|
46 |
)
|
47 |
]
|
@@ -52,7 +52,9 @@ class redditMHP(datasets.GeneratorBasedBuilder):
|
|
52 |
features=datasets.Features(
|
53 |
{
|
54 |
"question": datasets.Value("string"),
|
55 |
-
"comment": datasets.Value("string")
|
|
|
|
|
56 |
}
|
57 |
),
|
58 |
supervised_keys=None,
|
@@ -90,7 +92,7 @@ class redditMHP(datasets.GeneratorBasedBuilder):
|
|
90 |
dataset = json.load(input_file)
|
91 |
idx = 0
|
92 |
for meta_data in dataset:
|
93 |
-
yield idx, {"question": meta_data["
|
94 |
idx += 1
|
95 |
|
96 |
|
|
|
40 |
|
41 |
BUILDER_CONFIGS = [
|
42 |
datasets.BuilderConfig(
|
43 |
+
name="plain_text",
|
44 |
+
description="plain text",
|
45 |
version=VERSION,
|
46 |
)
|
47 |
]
|
|
|
52 |
features=datasets.Features(
|
53 |
{
|
54 |
"question": datasets.Value("string"),
|
55 |
+
"comment": datasets.Value("string"),
|
56 |
+
"post_id": datasets.Value("string"),
|
57 |
+
"comment_id": datasets.Value("string"),
|
58 |
}
|
59 |
),
|
60 |
supervised_keys=None,
|
|
|
92 |
dataset = json.load(input_file)
|
93 |
idx = 0
|
94 |
for meta_data in dataset:
|
95 |
+
yield idx, {"question": meta_data["question"], "comment": meta_data["comment"], "post_id":meta_data['post_id'], "comment_id": meta_data["comment_id"]}
|
96 |
idx += 1
|
97 |
|
98 |
|
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:8a35bc48dee950fc3dc857ffc481d14e05c408f3bf5662b93e7c7eb10a05faff
|
3 |
+
size 15869136
|
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:b15731e2ffb6fc1008dc026b556198e7fa7de08b3b876457e5ccadb6fe30524a
|
3 |
+
size 12748829
|
valid.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|