Datasets:
Tasks:
Token Classification
Modalities:
Text
Formats:
parquet
Sub-tasks:
named-entity-recognition
Languages:
English
Size:
10K - 100K
License:
Update files from the datasets library (from 1.4.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.4.0
- bc2gm_corpus.py +4 -3
bc2gm_corpus.py
CHANGED
@@ -16,11 +16,12 @@
|
|
16 |
# Lint as: python3
|
17 |
"""BioCreative II gene mention recognition Corpus"""
|
18 |
|
19 |
-
import logging
|
20 |
-
|
21 |
import datasets
|
22 |
|
23 |
|
|
|
|
|
|
|
24 |
_CITATION = """\
|
25 |
@article{smith2008overview,
|
26 |
title={Overview of BioCreative II gene mention recognition},
|
@@ -112,7 +113,7 @@ class Bc2gmCorpus(datasets.GeneratorBasedBuilder):
|
|
112 |
]
|
113 |
|
114 |
def _generate_examples(self, filepath):
|
115 |
-
|
116 |
with open(filepath, encoding="utf-8") as f:
|
117 |
guid = 0
|
118 |
tokens = []
|
|
|
16 |
# Lint as: python3
|
17 |
"""BioCreative II gene mention recognition Corpus"""
|
18 |
|
|
|
|
|
19 |
import datasets
|
20 |
|
21 |
|
22 |
+
logger = datasets.logging.get_logger(__name__)
|
23 |
+
|
24 |
+
|
25 |
_CITATION = """\
|
26 |
@article{smith2008overview,
|
27 |
title={Overview of BioCreative II gene mention recognition},
|
|
|
113 |
]
|
114 |
|
115 |
def _generate_examples(self, filepath):
|
116 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
117 |
with open(filepath, encoding="utf-8") as f:
|
118 |
guid = 0
|
119 |
tokens = []
|