Datasets:
Tasks:
Token Classification
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
1K<n<10K
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- species_800.py +4 -2
species_800.py
CHANGED
@@ -16,12 +16,14 @@
|
|
16 |
# Lint as: python3
|
17 |
"""The SPECIES and ORGANISMS Resources for Fast and Accurate Identification of Taxonomic Names in Text"""
|
18 |
|
19 |
-
import logging
|
20 |
import os
|
21 |
|
22 |
import datasets
|
23 |
|
24 |
|
|
|
|
|
|
|
25 |
_CITATION = """\
|
26 |
@article{pafilis2013species,
|
27 |
title={The SPECIES and ORGANISMS resources for fast and accurate identification of taxonomic names in text},
|
@@ -115,7 +117,7 @@ class Species800(datasets.GeneratorBasedBuilder):
|
|
115 |
]
|
116 |
|
117 |
def _generate_examples(self, filepath):
|
118 |
-
|
119 |
with open(filepath, encoding="utf-8") as f:
|
120 |
guid = 0
|
121 |
tokens = []
|
|
|
16 |
# Lint as: python3
|
17 |
"""The SPECIES and ORGANISMS Resources for Fast and Accurate Identification of Taxonomic Names in Text"""
|
18 |
|
|
|
19 |
import os
|
20 |
|
21 |
import datasets
|
22 |
|
23 |
|
24 |
+
logger = datasets.logging.get_logger(__name__)
|
25 |
+
|
26 |
+
|
27 |
_CITATION = """\
|
28 |
@article{pafilis2013species,
|
29 |
title={The SPECIES and ORGANISMS resources for fast and accurate identification of taxonomic names in text},
|
|
|
117 |
]
|
118 |
|
119 |
def _generate_examples(self, filepath):
|
120 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
121 |
with open(filepath, encoding="utf-8") as f:
|
122 |
guid = 0
|
123 |
tokens = []
|