Aashraya Sachdeva
commited on
Commit
·
b8b3a01
1
Parent(s):
045a82e
fix path
Browse files- multiconer2.py +2 -5
multiconer2.py
CHANGED
|
@@ -3,7 +3,6 @@ import datasets
|
|
| 3 |
|
| 4 |
logger = datasets.logging.get_logger(__name__)
|
| 5 |
|
| 6 |
-
|
| 7 |
# TODO: Add BibTeX citation
|
| 8 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
| 9 |
_CITATION = """\
|
|
@@ -136,10 +135,8 @@ class Multiconer2(datasets.GeneratorBasedBuilder):
|
|
| 136 |
])
|
| 137 |
|
| 138 |
return [
|
| 139 |
-
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath":
|
| 140 |
-
|
| 141 |
-
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": os.path.join(base_path,
|
| 142 |
-
f"{self.config.name}-dev.conll")}),
|
| 143 |
]
|
| 144 |
|
| 145 |
def _generate_examples(self, filepath):
|
|
|
|
| 3 |
|
| 4 |
logger = datasets.logging.get_logger(__name__)
|
| 5 |
|
|
|
|
| 6 |
# TODO: Add BibTeX citation
|
| 7 |
# Find for instance the citation on arxiv or on the dataset repo/website
|
| 8 |
_CITATION = """\
|
|
|
|
| 135 |
])
|
| 136 |
|
| 137 |
return [
|
| 138 |
+
datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": f"{self.config.name}-train.conll"}),
|
| 139 |
+
datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": f"{self.config.name}-dev.conll"}),
|
|
|
|
|
|
|
| 140 |
]
|
| 141 |
|
| 142 |
def _generate_examples(self, filepath):
|