Datasets:
Tasks:
Token Classification
Modalities:
Text
Sub-tasks:
named-entity-recognition
Size:
1M - 10M
ArXiv:
License:
Update fiNERweb.py
Browse files- fiNERweb.py +3 -1
fiNERweb.py
CHANGED
|
@@ -155,7 +155,9 @@ class fiNERweb(datasets.GeneratorBasedBuilder):
|
|
| 155 |
)
|
| 156 |
|
| 157 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
| 158 |
-
|
|
|
|
|
|
|
| 159 |
return [
|
| 160 |
datasets.SplitGenerator(
|
| 161 |
name=datasets.Split.TRAIN,
|
|
|
|
| 155 |
)
|
| 156 |
|
| 157 |
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
| 158 |
+
# If manual_dir is None, try to get the directory containing the script
|
| 159 |
+
base_dir = os.path.dirname(os.path.abspath(__file__))
|
| 160 |
+
data_dir = os.path.join(base_dir, self.config.language)
|
| 161 |
return [
|
| 162 |
datasets.SplitGenerator(
|
| 163 |
name=datasets.Split.TRAIN,
|