remove legacy argument
Browse files
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
|
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.
|
|
|
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.
|