houcha commited on
Commit
e6f1692
·
1 Parent(s): a847fea

remove legacy argument

Browse files
Files changed (1) hide show
  1. enhanced-cobald-dataset.py +2 -2
enhanced-cobald-dataset.py CHANGED
@@ -55,11 +55,11 @@ class EnhancedCobaldDataset(GeneratorBasedBuilder):
55
  return [
56
  datasets.SplitGenerator(
57
  name=datasets.Split.TRAIN,
58
- gen_kwargs={"filepath": data_path, "has_labels": True}
59
  )
60
  ]
61
 
62
- def _generate_examples(self, filepath: str, has_labels: bool):
63
  """
64
  Generator function that reads a CoNLL-U file and yields one sentence at a time.
65
  Each sentence is represented as a dictionary where each field is a list.
 
55
  return [
56
  datasets.SplitGenerator(
57
  name=datasets.Split.TRAIN,
58
+ gen_kwargs={"filepath": data_path}
59
  )
60
  ]
61
 
62
+ def _generate_examples(self, filepath: str):
63
  """
64
  Generator function that reads a CoNLL-U file and yields one sentence at a time.
65
  Each sentence is represented as a dictionary where each field is a list.