reach-vb HF staff commited on
Commit
c62f426
1 Parent(s): 5e44df8

Add deprecation warning

Browse files

It'd be better to move away from canonical datasets and push the usage towards datasets hosted under an organisation.

We are already doing this with multilingual_librispeech, only makes sense to do this for common voice as well.

Note: That currently I link to the latest available CV split on the hub CV11, this should be updated when we add CV12.

cc:

@albertvillanova



@polinaeterna



@sanchit-gandhi

Files changed (1) hide show
  1. common_voice.py +10 -0
common_voice.py CHANGED
@@ -16,6 +16,7 @@
16
 
17
 
18
  import os
 
19
 
20
  import datasets
21
  from datasets.tasks import AutomaticSpeechRecognition
@@ -629,6 +630,15 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
629
  ]
630
 
631
  def _info(self):
 
 
 
 
 
 
 
 
 
632
  features = datasets.Features(
633
  {
634
  "client_id": datasets.Value("string"),
16
 
17
 
18
  import os
19
+ import warnings
20
 
21
  import datasets
22
  from datasets.tasks import AutomaticSpeechRecognition
630
  ]
631
 
632
  def _info(self):
633
+
634
+ warnings.warn(
635
+ """
636
+ This version of the Common Voice dataset is deprecated.
637
+ You can download the latest one with
638
+ >>> load_dataset(\"mozilla-foundation/common_voice_11_0\", \"en\")
639
+ """
640
+ )
641
+
642
  features = datasets.Features(
643
  {
644
  "client_id": datasets.Value("string"),