Matías Rojas
commited on
Commit
•
fe7c3ef
1
Parent(s):
d73a877
fixing some errors
Browse files
task1a.py
CHANGED
@@ -34,7 +34,7 @@ class Task1a(datasets.GeneratorBasedBuilder):
|
|
34 |
# next(csv_reader, None) # skip the headers
|
35 |
for id_, row in enumerate(csv_reader):
|
36 |
if id_ > 0:
|
37 |
-
text, label = row
|
38 |
current_row = id_, {"text": text, "label": int(label)}
|
39 |
if (id_ < train_threshold) & (not is_test):
|
40 |
yield current_row
|
|
|
34 |
# next(csv_reader, None) # skip the headers
|
35 |
for id_, row in enumerate(csv_reader):
|
36 |
if id_ > 0:
|
37 |
+
filename, text, label = row
|
38 |
current_row = id_, {"text": text, "label": int(label)}
|
39 |
if (id_ < train_threshold) & (not is_test):
|
40 |
yield current_row
|