Sin2pi commited on
Commit
f11512f
·
verified ·
1 Parent(s): 8f68df6

Update download_datasets_in_wav_or_mp3_and_create_csv.ipynb

Browse files
download_datasets_in_wav_or_mp3_and_create_csv.ipynb CHANGED
@@ -22,9 +22,9 @@
22
  "special_characters = '[♬「」?!“%‘”~♪…?!゛#$%&()*+:;〈=〉@^_{|}~\"█♩♫』『.;:<>_()*&^$#@`, ]'\n",
23
  "\n",
24
  "dsa = (dataset\n",
25
- " .filter(lambda sample: bool(sample[\"sentence\"]))\n",
26
- " .filter(lambda sample: not re.search(char, sample[\"sentence\"]))\n",
27
- " .filter(lambda sample: sample[\"down_votes\"] == 0)\n",
28
  " )\n",
29
  "\n",
30
  "for i, sample in tqdm(enumerate(dsa)): # Process each sample in the filtered dataset\n",
 
22
  "special_characters = '[♬「」?!“%‘”~♪…?!゛#$%&()*+:;〈=〉@^_{|}~\"█♩♫』『.;:<>_()*&^$#@`, ]'\n",
23
  "\n",
24
  "dsa = (dataset\n",
25
+ " .filter(lambda sample: bool(sample[\"sentence\"])) # Returns only samples with transcriptions\n",
26
+ " .filter(lambda sample: not re.search(char, sample[\"sentence\"])) # Returns only samples without latin/roman alpha/numerics\n",
27
+ " .filter(lambda sample: sample[\"down_votes\"] == 0) # Returns only samples with 0 downvotes (commonvoice)\n",
28
  " )\n",
29
  "\n",
30
  "for i, sample in tqdm(enumerate(dsa)): # Process each sample in the filtered dataset\n",