dlxj commited on
Commit
388a1c1
1 Parent(s): bc5f5a2

add train.py

Browse files
Files changed (1) hide show
  1. train.py +13 -0
train.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # pip install numpy==1.26.4 transformers==4.45.2 datasets==3.0.1 librosa==0.10.2.post1 jiwer==3.0.4 bitsandbytes==0.38.0.post1 accelerate==0.26.0
2
+
3
+ dataset_name = "dlxjj/common_voice_17_0"
4
+ language = "Japanese"
5
+ language_abbr = "ja"
6
+
7
+ from datasets import load_dataset, DatasetDict
8
+
9
+ common_voice = DatasetDict()
10
+
11
+ common_voice["train"] = load_dataset(dataset_name, language_abbr, split="train", trust_remote_code=True)
12
+
13
+ print(common_voice["train"][0])