From 5d5b716fafe278c5771bb0c84cd79c9090ab5e00 Mon Sep 17 00:00:00 2001 From: polinaeterna Date: Wed, 30 Mar 2022 13:17:10 +0300 Subject: [PATCH] add deprecation warning --- .../multilingual_librispeech.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/datasets/multilingual_librispeech/multilingual_librispeech.py b/datasets/multilingual_librispeech/multilingual_librispeech.py index 62c1120e35a..3a90c3145ef 100644 --- a/datasets/multilingual_librispeech/multilingual_librispeech.py +++ b/datasets/multilingual_librispeech/multilingual_librispeech.py @@ -19,6 +19,7 @@ import glob import os +import warnings import datasets from datasets.tasks import AutomaticSpeechRecognition @@ -70,6 +71,15 @@ class MultilingualLibrispeech(datasets.GeneratorBasedBuilder): ] def _info(self): + + warnings.warn( + """ + This version of the Multilingual Librispeech dataset doesn't support streaming and is deprecated. + You can download the latest one with + >>> load_dataset(\"facebook/multilingual_librispeech\", \"polish\") + """ + ) + return datasets.DatasetInfo( description=_DESCRIPTION, features=datasets.Features(