Initial commit: FunASR Speech Recognition Toolkit
Update API Documentation / build-api-docs (push) Has been cancelled
Update API Documentation / build-api-docs (push) Has been cancelled
Add complete FunASR codebase including models, runtime, and documentation.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
def download_dataset():
|
||||
"""Download dataset."""
|
||||
pass
|
||||
|
||||
|
||||
def download_dataset_from_ms(**kwargs):
|
||||
"""Download dataset from ms.
|
||||
|
||||
Args:
|
||||
**kwargs: Additional keyword arguments.
|
||||
"""
|
||||
from modelscope.msdatasets import MsDataset
|
||||
|
||||
dataset_name = kwargs.get("dataset_name", "speech_asr/speech_asr_aishell1_trainsets")
|
||||
subset_name = kwargs.get("subset_name", "default")
|
||||
split = kwargs.get("split", "train")
|
||||
data_dump_dir = kwargs.get("data_dump_dir", None)
|
||||
ds = MsDataset.load(
|
||||
dataset_name=dataset_name, subset_name=subset_name, split=split, cache_dir=data_dump_dir
|
||||
)
|
||||
Reference in New Issue
Block a user