siyangliu commited on
Commit
00b9cdf
1 Parent(s): 12ee2db

Upload 6 files

Browse files
Files changed (5) hide show
  1. loading_script.py +6 -4
  2. mhp_full.json +2 -2
  3. test.json +0 -0
  4. train.json +2 -2
  5. 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
- "comment": datasets.Value("string"),
56
- "post_id": datasets.Value("string"),
57
- "comment_id": datasets.Value("string"),
 
 
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"], "comment": meta_data["comment"], "post_id":meta_data['post_id'], "comment_id": meta_data["comment_id"]}
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:8a35bc48dee950fc3dc857ffc481d14e05c408f3bf5662b93e7c7eb10a05faff
3
- size 15869136
 
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:b15731e2ffb6fc1008dc026b556198e7fa7de08b3b876457e5ccadb6fe30524a
3
- size 12748829
 
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