fsicoli commited on
Commit
5133645
1 Parent(s): d0e6a27

Upload 5 files

Browse files
Files changed (3) hide show
  1. common_voice_17_0.py +1 -1
  2. count_n_shards.py +0 -1
  3. n_shards.json +30 -27
common_voice_17_0.py CHANGED
@@ -137,7 +137,7 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
137
  n_shards = json.load(f)
138
 
139
  audio_urls = {}
140
- splits = ("train", "dev", "test", "other", "invalidated","validated","unvalidated")
141
  for split in splits:
142
  audio_urls[split] = [
143
  _AUDIO_URL.format(lang=lang, split=split, shard_idx=i) for i in range(n_shards[lang][split])
 
137
  n_shards = json.load(f)
138
 
139
  audio_urls = {}
140
+ splits = ("train", "dev", "test", "other", "invalidated")
141
  for split in splits:
142
  audio_urls[split] = [
143
  _AUDIO_URL.format(lang=lang, split=split, shard_idx=i) for i in range(n_shards[lang][split])
count_n_shards.py CHANGED
@@ -3,7 +3,6 @@ import json
3
 
4
 
5
  splits = ["train", "dev", "test", "other", "invalidated"]
6
-
7
  if __name__ == "__main__":
8
  n_files = {}
9
  lang_dirs = [d for d in Path("audio").iterdir() if d.is_dir()]
 
3
 
4
 
5
  splits = ["train", "dev", "test", "other", "invalidated"]
 
6
  if __name__ == "__main__":
7
  n_files = {}
8
  lang_dirs = [d for d in Path("audio").iterdir() if d.is_dir()]
n_shards.json CHANGED
@@ -4,80 +4,83 @@
4
  "dev": 1,
5
  "test": 1,
6
  "other": 1,
7
- "invalidated": 1,
8
- "validated": 0,
9
- "unvalidated": 0
10
  },
11
  "af": {
12
  "train": 1,
13
  "dev": 1,
14
  "test": 1,
15
  "other": 1,
16
- "invalidated": 1,
17
- "validated": 0,
18
- "unvalidated": 0
19
  },
20
  "ar": {
21
  "train": 1,
22
  "dev": 1,
23
  "test": 1,
24
  "other": 2,
25
- "invalidated": 1,
26
- "validated": 0,
27
- "unvalidated": 0
28
  },
29
  "as": {
30
  "train": 1,
31
  "dev": 1,
32
  "test": 1,
33
  "other": 1,
34
- "invalidated": 1,
35
- "validated": 0,
36
- "unvalidated": 0
37
  },
38
  "ast": {
39
  "train": 1,
40
  "dev": 1,
41
  "test": 1,
42
  "other": 1,
43
- "invalidated": 1,
44
- "validated": 0,
45
- "unvalidated": 0
46
  },
47
  "az": {
48
  "train": 1,
49
  "dev": 1,
50
  "test": 1,
51
  "other": 1,
52
- "invalidated": 1,
53
- "validated": 0,
54
- "unvalidated": 0
55
  },
56
  "ba": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  "train": 0,
58
  "dev": 0,
59
  "test": 0,
60
  "other": 0,
61
- "invalidated": 0,
62
- "validated": 0,
63
- "unvalidated": 0
 
 
 
 
 
64
  },
65
  "pt": {
66
  "train": 1,
67
  "dev": 1,
68
  "test": 1,
69
  "other": 1,
70
- "invalidated": 1,
71
- "validated": 4,
72
- "unvalidated": 0
73
  },
74
  "sq": {
75
  "train": 1,
76
  "dev": 1,
77
  "test": 1,
78
  "other": 1,
79
- "invalidated": 1,
80
- "validated": 0,
81
- "unvalidated": 0
82
  }
83
  }
 
4
  "dev": 1,
5
  "test": 1,
6
  "other": 1,
7
+ "invalidated": 1
 
 
8
  },
9
  "af": {
10
  "train": 1,
11
  "dev": 1,
12
  "test": 1,
13
  "other": 1,
14
+ "invalidated": 1
 
 
15
  },
16
  "ar": {
17
  "train": 1,
18
  "dev": 1,
19
  "test": 1,
20
  "other": 2,
21
+ "invalidated": 1
 
 
22
  },
23
  "as": {
24
  "train": 1,
25
  "dev": 1,
26
  "test": 1,
27
  "other": 1,
28
+ "invalidated": 1
 
 
29
  },
30
  "ast": {
31
  "train": 1,
32
  "dev": 1,
33
  "test": 1,
34
  "other": 1,
35
+ "invalidated": 1
 
 
36
  },
37
  "az": {
38
  "train": 1,
39
  "dev": 1,
40
  "test": 1,
41
  "other": 1,
42
+ "invalidated": 1
 
 
43
  },
44
  "ba": {
45
+ "train": 3,
46
+ "dev": 1,
47
+ "test": 1,
48
+ "other": 1,
49
+ "invalidated": 1
50
+ },
51
+ "bas": {
52
+ "train": 1,
53
+ "dev": 1,
54
+ "test": 1,
55
+ "other": 1,
56
+ "invalidated": 1
57
+ },
58
+ "bn": {
59
  "train": 0,
60
  "dev": 0,
61
  "test": 0,
62
  "other": 0,
63
+ "invalidated": 0
64
+ },
65
+ "hy-AM": {
66
+ "train": 1,
67
+ "dev": 1,
68
+ "test": 1,
69
+ "other": 1,
70
+ "invalidated": 1
71
  },
72
  "pt": {
73
  "train": 1,
74
  "dev": 1,
75
  "test": 1,
76
  "other": 1,
77
+ "invalidated": 1
 
 
78
  },
79
  "sq": {
80
  "train": 1,
81
  "dev": 1,
82
  "test": 1,
83
  "other": 1,
84
+ "invalidated": 1
 
 
85
  }
86
  }