ScHh0625 commited on
Commit
00fced2
·
1 Parent(s): 4a907b2

Update rel-text.py

Browse files
Files changed (1) hide show
  1. rel-text.py +2 -2
rel-text.py CHANGED
@@ -56,9 +56,9 @@ class relText(datasets.GeneratorBasedBuilder):
56
  "path_file": dl_manager.download_and_extract(self.config.data_url), "split": "target", })]
57
 
58
  def _generate_examples(self, path_file, split):
59
- file = pd.read_csv(path_file),
60
  for i, row in file.iterrows():
61
- if split in ['pairs']:
62
  yield i, {
63
  "ltable_id": row["ltable_id"],
64
  "rtable_id": row["rtable_id"],
 
56
  "path_file": dl_manager.download_and_extract(self.config.data_url), "split": "target", })]
57
 
58
  def _generate_examples(self, path_file, split):
59
+ file = pd.read_csv(path_file)
60
  for i, row in file.iterrows():
61
+ if split not in ['target']:
62
  yield i, {
63
  "ltable_id": row["ltable_id"],
64
  "rtable_id": row["rtable_id"],