Commit
·
909d28f
1
Parent(s):
fbf2b99
feat: Add logging warning
Browse files
nucleotide_transformer_downstream_tasks.py
CHANGED
@@ -18,6 +18,10 @@ Transformer paper."""
|
|
18 |
from typing import List
|
19 |
|
20 |
import datasets
|
|
|
|
|
|
|
|
|
21 |
|
22 |
|
23 |
# This function is a basic reimplementation of SeqIO's parse method. This allows the
|
@@ -149,6 +153,7 @@ class NucleotideTransformerDownstreamTasks(datasets.GeneratorBasedBuilder):
|
|
149 |
|
150 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
151 |
def _generate_examples(self, file):
|
|
|
152 |
print("""
|
153 |
WARNING: Please note that the Nucleotide Transformer datasets have been revised
|
154 |
during the pee-review process, and the new datasets are available at
|
|
|
18 |
from typing import List
|
19 |
|
20 |
import datasets
|
21 |
+
from datasets.utils import logging
|
22 |
+
|
23 |
+
logger = logging.get_logger("datasets")
|
24 |
+
|
25 |
|
26 |
|
27 |
# This function is a basic reimplementation of SeqIO's parse method. This allows the
|
|
|
153 |
|
154 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
155 |
def _generate_examples(self, file):
|
156 |
+
logger.info("INFO")
|
157 |
print("""
|
158 |
WARNING: Please note that the Nucleotide Transformer datasets have been revised
|
159 |
during the pee-review process, and the new datasets are available at
|