Datasets:
Tasks:
Text Classification
Sub-tasks:
acceptability-classification
Languages:
Italian
ArXiv:
License:
Fix enumerate
Browse files- itacola.py +1 -1
itacola.py
CHANGED
@@ -132,7 +132,7 @@ class ItaCola(datasets.GeneratorBasedBuilder):
|
|
132 |
def _generate_examples(self, filepath: str, split: str, features: List[str]):
|
133 |
"""Yields examples as (key, example) tuples."""
|
134 |
with open(filepath, encoding="utf8") as f:
|
135 |
-
for id_, row in f:
|
136 |
if id_ == 0:
|
137 |
continue
|
138 |
ex_split = None
|
|
|
132 |
def _generate_examples(self, filepath: str, split: str, features: List[str]):
|
133 |
"""Yields examples as (key, example) tuples."""
|
134 |
with open(filepath, encoding="utf8") as f:
|
135 |
+
for id_, row in enumerate(f):
|
136 |
if id_ == 0:
|
137 |
continue
|
138 |
ex_split = None
|