Commit ·
4f543a7
1
Parent(s): d8d738d
Update rel-text.py
Browse files- rel-text.py +2 -2
rel-text.py
CHANGED
|
@@ -73,9 +73,9 @@ class relText(datasets.GeneratorBasedBuilder):
|
|
| 73 |
if split=="source": #read in txt file.
|
| 74 |
with open(path_file, "r") as f:
|
| 75 |
file = f.readlines()
|
| 76 |
-
for i in range(len(
|
| 77 |
yield i, {
|
| 78 |
-
"content":
|
| 79 |
}
|
| 80 |
else:
|
| 81 |
file = pd.read_csv(path_file)
|
|
|
|
| 73 |
if split=="source": #read in txt file.
|
| 74 |
with open(path_file, "r") as f:
|
| 75 |
file = f.readlines()
|
| 76 |
+
for i in range(len(file)):
|
| 77 |
yield i, {
|
| 78 |
+
"content": file[i]
|
| 79 |
}
|
| 80 |
else:
|
| 81 |
file = pd.read_csv(path_file)
|