Update rel-text.py
Browse files- rel-text.py +1 -1
rel-text.py
CHANGED
|
@@ -57,7 +57,7 @@ class relText(datasets.GeneratorBasedBuilder):
|
|
| 57 |
|
| 58 |
def _generate_examples(self, path_file, split):
|
| 59 |
file = pd.read_table(path_file),
|
| 60 |
-
for i, row in file.
|
| 61 |
if split in ['pairs']:
|
| 62 |
yield i, {
|
| 63 |
"ltable_id": row["ltable_id"],
|
|
|
|
| 57 |
|
| 58 |
def _generate_examples(self, path_file, split):
|
| 59 |
file = pd.read_table(path_file),
|
| 60 |
+
for i, row in file.iterrows():
|
| 61 |
if split in ['pairs']:
|
| 62 |
yield i, {
|
| 63 |
"ltable_id": row["ltable_id"],
|