Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -30,22 +30,3 @@ size_categories:
|
|
30 |
---
|
31 |
common voice, google fleurs, JSUTv1.1, JAS_v2 (joujiboi/japanese-anime-speech-v2) processed for whisper. Not shuffled or normalized. 50% anime speech and 50% other. Other corpus's are fully represented.
|
32 |
|
33 |
-
if needed:
|
34 |
-
|
35 |
-
import neologdn
|
36 |
-
import MeCab
|
37 |
-
import re
|
38 |
-
from transformers.models.whisper.english_normalizer import BasicTextNormalizer
|
39 |
-
|
40 |
-
wakati = MeCab.Tagger("-Owakati")
|
41 |
-
special_characters = '[\,\、\。\.\「\」\…\?\・\!\-\;\:\"\“\%\‘\”\�]'
|
42 |
-
|
43 |
-
|
44 |
-
def norm_everything(batch):
|
45 |
-
batch["sentence"] = neologdn.normalize(batch["sentence"]).strip()
|
46 |
-
batch["sentence"] = normalizer(batch["sentence"]).strip()
|
47 |
-
batch["sentence"] = wakati.parse(batch["sentence"]).strip()
|
48 |
-
batch["sentence"] = re.sub(special_characters,'', batch["sentence"]).strip()
|
49 |
-
return batch
|
50 |
-
|
51 |
-
ds = ds.map(norm_everything)
|
|
|
30 |
---
|
31 |
common voice, google fleurs, JSUTv1.1, JAS_v2 (joujiboi/japanese-anime-speech-v2) processed for whisper. Not shuffled or normalized. 50% anime speech and 50% other. Other corpus's are fully represented.
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|