gsarti commited on
Commit
5fa2041
1 Parent(s): 6b37eca

Fix enumerate

Browse files
Files changed (1) hide show
  1. 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