Datasets:

ArXiv:
License:
xinjianl commited on
Commit
b850c9c
1 Parent(s): 589ee8d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +54 -2
README.md CHANGED
@@ -1,3 +1,55 @@
1
- YODAS2 is the long-form dataset from YODAS dataset.
 
 
2
 
3
- It provides the same dataset as the `espnet/yodas` but this one has been formatted in the long-form where audios are not segmented.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-3.0
3
+ ---
4
 
5
+ YODAS2 is the long-form dataset from YODAS dataset.
6
+
7
+ It provides the same dataset as the `espnet/yodas` but this one has been formatted in the long-form where audios are not segmented.
8
+
9
+ Additionally, audios are encoded using higher sampling rates (i.e. 24k) in YODAS2.
10
+
11
+ For detailed information about Yodas dataset, please refer to [our paper](https://arxiv.org/abs/2406.00899) and the [espnet/yodas repo](https://huggingface.co/datasets/espnet/yodas).
12
+
13
+ ## Usage:
14
+
15
+
16
+ Each data point corresponds to an entire video on YouTube, it contains the following fields:
17
+
18
+ - video_id: unique id of this video (note this id is not the video_id in Youtube)
19
+ - duration: total duration in seconds of this video
20
+ - audio
21
+ - path: local path to wav file if in standard mode, otherwise empty in the streaming mode
22
+ - sampling_rate: fixed to be 24k. (note that the sampling rate in `espnet/yodas` is 16k)
23
+ - array: wav samples in float
24
+ - utterances
25
+ - utt_id: unique id of this utterance
26
+ - text: transcription of this utterance
27
+ - start: start timestamp in seconds of this utterance
28
+ - end: end timestamp in seconds of this utterance
29
+
30
+ Yodas2 also supports two modes:
31
+
32
+ **standard mode**: each subset will be downloaded to the local dish before first iterating.
33
+
34
+ ```python
35
+ from datasets import load_dataset
36
+
37
+ # Note this will take very long time to download and preprocess
38
+ # you can try small subset for testing purpose
39
+ ds = load_dataset('espnet/yodas2', 'en000')
40
+ print(next(iter(ds['train'])))
41
+ ```
42
+
43
+ **streaming mode** most of the files will be streamed instead of downloaded to your local deivce. It can be used to inspect this dataset quickly.
44
+
45
+ ```python
46
+ from datasets import load_dataset
47
+
48
+ # this streaming loading will finish quickly
49
+ ds = load_dataset('espnet/yodas2', 'en000', streaming=True)
50
+
51
+
52
+ #{'id': '9774', 'utt_id': 'YoRjzEnRcqu-00000-00000716-00000819', 'audio': {'path': None, 'array': array([-0.009552 , -0.01086426, -0.012146 , ..., -0.01992798,
53
+ # -0.01885986, -0.01074219]), 'sampling_rate': 16000}, 'text': 'There is a saying'}
54
+ print(next(iter(ds['train'])))
55
+ ```