LisaWang0306 commited on
Commit
8d35ec4
1 Parent(s): 3d79089

Update dwy100k-d-w.py

Browse files
Files changed (1) hide show
  1. dwy100k-d-w.py +8 -8
dwy100k-d-w.py CHANGED
@@ -22,21 +22,21 @@ class Dwy100kDW(datasets.GeneratorBasedBuilder):
22
  features=["column1", "column2", "column3"],
23
  citation="TODO",
24
  url="TODO",
25
- data_url="https://huggingface.co/datasets/matchbench/dwy100k-d-w/resolve/main/dbp100k-zh-en.zip"
26
  ),
27
  Dwy100kDWConfig(
28
  name="target",
29
  features=["column1", "column2", "column3"],
30
  citation="TODO",
31
  url="TODO",
32
- data_url="https://huggingface.co/datasets/matchbench/dwy100k-d-w/resolve/main/dbp100k-zh-en.zip"
33
  ),
34
  Dwy100kDWConfig(
35
  name="pairs",
36
  features=["left_id", "right_id"],
37
  citation="TODO",
38
  url="TODO",
39
- data_url="https://huggingface.co/datasets/matchbench/dwy100k-d-w/resolve/main/dbp100k-zh-en.zip"
40
  ),
41
  ]
42
 
@@ -95,35 +95,35 @@ class Dwy100kDW(datasets.GeneratorBasedBuilder):
95
  datasets.SplitGenerator(
96
  name="train",
97
  gen_kwargs={
98
- "data_file": os.path.join(dl_dir, "train"),
99
  "split": "train",
100
  },
101
  ),
102
  datasets.SplitGenerator(
103
  name="valid",
104
  gen_kwargs={
105
- "data_file": os.path.join(dl_dir, "dev"),
106
  "split": "valid",
107
  },
108
  ),
109
  datasets.SplitGenerator(
110
  name="test",
111
  gen_kwargs={
112
- "data_file": os.path.join(dl_dir, "test"),
113
  "split": "test",
114
  },
115
  ),
116
  datasets.SplitGenerator(
117
  name="sup",
118
  gen_kwargs={
119
- "data_file": os.path.join(dl_dir, "train"),
120
  "split": "sup",
121
  },
122
  ),
123
  datasets.SplitGenerator(
124
  name="ref",
125
  gen_kwargs={
126
- "data_file": os.path.join(dl_dir, "test"),
127
  "split": "ref",
128
  },
129
  ),
 
22
  features=["column1", "column2", "column3"],
23
  citation="TODO",
24
  url="TODO",
25
+ data_url="https://huggingface.co/datasets/matchbench/dwy100k-d-w/resolve/main/dwy-dbp-wd-100k.zip"
26
  ),
27
  Dwy100kDWConfig(
28
  name="target",
29
  features=["column1", "column2", "column3"],
30
  citation="TODO",
31
  url="TODO",
32
+ data_url="https://huggingface.co/datasets/matchbench/dwy100k-d-w/resolve/main/dwy-dbp-wd-100k.zip"
33
  ),
34
  Dwy100kDWConfig(
35
  name="pairs",
36
  features=["left_id", "right_id"],
37
  citation="TODO",
38
  url="TODO",
39
+ data_url="https://huggingface.co/datasets/matchbench/dwy100k-d-w/resolve/main/dwy-dbp-wd-100k.zip"
40
  ),
41
  ]
42
 
 
95
  datasets.SplitGenerator(
96
  name="train",
97
  gen_kwargs={
98
+ "data_file": os.path.join(dl_dir, "train_ent_ids"),
99
  "split": "train",
100
  },
101
  ),
102
  datasets.SplitGenerator(
103
  name="valid",
104
  gen_kwargs={
105
+ "data_file": os.path.join(dl_dir, "valid_ent_ids"),
106
  "split": "valid",
107
  },
108
  ),
109
  datasets.SplitGenerator(
110
  name="test",
111
  gen_kwargs={
112
+ "data_file": os.path.join(dl_dir, "ref_ent_ids"),
113
  "split": "test",
114
  },
115
  ),
116
  datasets.SplitGenerator(
117
  name="sup",
118
  gen_kwargs={
119
+ "data_file": os.path.join(dl_dir, "sup_ent_ids"),
120
  "split": "sup",
121
  },
122
  ),
123
  datasets.SplitGenerator(
124
  name="ref",
125
  gen_kwargs={
126
+ "data_file": os.path.join(dl_dir, "ref_ent_ids"),
127
  "split": "ref",
128
  },
129
  ),