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
- ncbi_disease.py +4 -3
ncbi_disease.py
CHANGED
@@ -16,11 +16,12 @@
|
|
16 |
# Lint as: python3
|
17 |
"""NCBI disease corpus: a resource for disease name recognition and concept normalization"""
|
18 |
|
19 |
-
import logging
|
20 |
-
|
21 |
import datasets
|
22 |
|
23 |
|
|
|
|
|
|
|
24 |
_CITATION = """\
|
25 |
@article{dougan2014ncbi,
|
26 |
title={NCBI disease corpus: a resource for disease name recognition and concept normalization},
|
@@ -114,7 +115,7 @@ class NCBIDisease(datasets.GeneratorBasedBuilder):
|
|
114 |
]
|
115 |
|
116 |
def _generate_examples(self, filepath):
|
117 |
-
|
118 |
with open(filepath, encoding="utf-8") as f:
|
119 |
guid = 0
|
120 |
tokens = []
|
|
|
16 |
# Lint as: python3
|
17 |
"""NCBI disease corpus: a resource for disease name recognition and concept normalization"""
|
18 |
|
|
|
|
|
19 |
import datasets
|
20 |
|
21 |
|
22 |
+
logger = datasets.logging.get_logger(__name__)
|
23 |
+
|
24 |
+
|
25 |
_CITATION = """\
|
26 |
@article{dougan2014ncbi,
|
27 |
title={NCBI disease corpus: a resource for disease name recognition and concept normalization},
|
|
|
115 |
]
|
116 |
|
117 |
def _generate_examples(self, filepath):
|
118 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
119 |
with open(filepath, encoding="utf-8") as f:
|
120 |
guid = 0
|
121 |
tokens = []
|