LisaWang0306 commited on
Commit
f269e13
1 Parent(s): 7d6410b

Update dbp15k-fr-en.py

Browse files
Files changed (1) hide show
  1. dbp15k-fr-en.py +1 -1
dbp15k-fr-en.py CHANGED
@@ -171,7 +171,7 @@ class Dbp15kFrEn(datasets.GeneratorBasedBuilder):
171
 
172
  def _generate_examples(self, data_file, split):
173
  if split in ["description"]:
174
- des = pickle.load(data_file)
175
  for ent,ori_des in des.items():
176
  yield i, {
177
  "column1": row[0],
 
171
 
172
  def _generate_examples(self, data_file, split):
173
  if split in ["description"]:
174
+ des = pickle.load(data_file,"rb")
175
  for ent,ori_des in des.items():
176
  yield i, {
177
  "column1": row[0],