albertvillanova HF staff commited on
Commit
476cc83
1 Parent(s): f957799

Deprecate (#3)

Browse files

- Add deprecation warning in script (f41bccf994a6aa91ee613a36e53095fdedb85a01)
- Add deprecation warning in dataset card (0a2dad8eff4fe0aa4da0ac6ce370962a5e2c2fdd)

Files changed (2) hide show
  1. README.md +9 -0
  2. pmc_open_access.py +5 -0
README.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Dataset Card for pmc_open_access
2
+
3
+ ## Dataset Description
4
+
5
+ ### Dataset Summary
6
+
7
+ <div class="course-tip course-tip-orange bg-gradient-to-br dark:bg-gradient-to-r before:border-orange-500 dark:before:border-orange-800 from-orange-50 dark:from-gray-900 to-white dark:to-gray-950 border border-orange-50 text-orange-700 dark:text-gray-400">
8
+ <p><b>Deprecated:</b> Dataset "pmc_open_access" is deprecated and will be deleted. Use "<a href="https://huggingface.co/datasets/pmc/open_access">pmc/open_access</a>" instead.</p>
9
+ </div>
pmc_open_access.py CHANGED
@@ -15,6 +15,7 @@
15
  """PMC Open Access Subset."""
16
 
17
  import datetime
 
18
 
19
  import pandas as pd
20
 
@@ -85,6 +86,10 @@ class PmcOpenAccess(datasets.GeneratorBasedBuilder):
85
  DEFAULT_CONFIG_NAME = "all"
86
 
87
  def _info(self):
 
 
 
 
88
  return datasets.DatasetInfo(
89
  description=_DESCRIPTION,
90
  features=datasets.Features(
 
15
  """PMC Open Access Subset."""
16
 
17
  import datetime
18
+ import warnings
19
 
20
  import pandas as pd
21
 
 
86
  DEFAULT_CONFIG_NAME = "all"
87
 
88
  def _info(self):
89
+ warnings.warn(
90
+ "Dataset 'pmc_open_access' is deprecated and will be deleted. Use 'pmc/open_access' instead.",
91
+ FutureWarning,
92
+ )
93
  return datasets.DatasetInfo(
94
  description=_DESCRIPTION,
95
  features=datasets.Features(