transiteration
commited on
Commit
•
9d70c50
1
Parent(s):
e39554c
Update README.md
Browse files
README.md
CHANGED
@@ -36,19 +36,21 @@ The model is accessible within the NeMo toolkit [1] and can serve as a pre-train
|
|
36 |
|
37 |
```
|
38 |
import nemo.collections.asr as nemo_asr
|
39 |
-
model = nemo_asr.models.
|
40 |
```
|
41 |
|
42 |
#### How to Train
|
43 |
|
44 |
```
|
45 |
-
python3 train.py --train_manifest path/to/manifest.json --val_manifest path/to/manifest.json
|
|
|
|
|
46 |
```
|
47 |
|
48 |
#### How to Evaluate
|
49 |
|
50 |
```
|
51 |
-
python3 evaluate.py --model_path /path/to/
|
52 |
```
|
53 |
|
54 |
#### How to Transcribe Audio File
|
@@ -59,7 +61,7 @@ wget https://asr-kz-example.s3.us-west-2.amazonaws.com/sample_kz.wav
|
|
59 |
```
|
60 |
This line is to transcribe the single audio:
|
61 |
```
|
62 |
-
python3
|
63 |
```
|
64 |
|
65 |
## Input and Output
|
@@ -90,7 +92,7 @@ In addition, if the speech includes technical terms or dialect words the model h
|
|
90 |
|
91 |
## Demonstration
|
92 |
|
93 |
-
For inference
|
94 |
|
95 |
## References
|
96 |
|
|
|
36 |
|
37 |
```
|
38 |
import nemo.collections.asr as nemo_asr
|
39 |
+
model = nemo_asr.models.ASRModel.restore_from(restore_path="stt_kz_quartznet15x5.nemo")
|
40 |
```
|
41 |
|
42 |
#### How to Train
|
43 |
|
44 |
```
|
45 |
+
python3 train.py --train_manifest path/to/manifest.json --val_manifest path/to/manifest.json \
|
46 |
+
--accelerator "gpu" --batch_size BATCH_SIZE --num_epochs NUM_EPOCHS \
|
47 |
+
--model_save_path path/to/save/model.nemo
|
48 |
```
|
49 |
|
50 |
#### How to Evaluate
|
51 |
|
52 |
```
|
53 |
+
python3 evaluate.py --model_path /path/to/model.nemo --test_manifest path/to/manifest.json --batch_size BATCH_SIZE
|
54 |
```
|
55 |
|
56 |
#### How to Transcribe Audio File
|
|
|
61 |
```
|
62 |
This line is to transcribe the single audio:
|
63 |
```
|
64 |
+
python3 transcribe.py --model_path /path/to/model.nemo --audio_file_path path/to/audio/file
|
65 |
```
|
66 |
|
67 |
## Input and Output
|
|
|
92 |
|
93 |
## Demonstration
|
94 |
|
95 |
+
For inference and downloading the model, check on Hugging Face Space: [NeMo_STT_KZ_Quartznet15x5](https://huggingface.co/spaces/transiteration/nemo_stt_kz_quartznet15x5)
|
96 |
|
97 |
## References
|
98 |
|