siyangliu commited on
Commit
c4bf8e9
1 Parent(s): 46941b0

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
@@ -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["questions"], "comment": meta_data["comment"]}
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:2a4b7960e0f570f3674587d9f67be5feeb954c20646cf391fc5d616ab1636a8e
3
- size 15629109
 
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:141e5f4a26618820c8f9249469ddd056d77792a4cd7f210ed0eae75d7eedc08f
3
- size 12555975
 
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