Update rel-text.py
Browse files- 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 ['
|
| 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"],
|