File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -166,9 +166,13 @@ def download_audio_files(batch):
166166 if isinstance (transcriptions , tuple ) and len (transcriptions ) == 2 :
167167 transcriptions = transcriptions [0 ]
168168
169- references = all_data ["references" ]
170- references = [data_utils .ml_normalizer (ref ) for ref in references ]
171- predictions = [data_utils .ml_normalizer (pred .text ) for pred in transcriptions ]
169+ references = all_data ["references" ]
170+ if LANGUAGE == "en" : # English is handled by the English normalizer
171+ references = [data_utils .normalizer (ref ) for ref in references ]
172+ predictions = [data_utils .normalizer (pred .text ) for pred in transcriptions ]
173+ else :
174+ references = [data_utils .ml_normalizer (ref ) for ref in references ]
175+ predictions = [data_utils .ml_normalizer (pred .text ) for pred in transcriptions ]
172176
173177 avg_time = total_time / len (all_data ["audio_filepaths" ])
174178
Original file line number Diff line number Diff line change 77export PYTHONPATH=" .." :$PYTHONPATH
88
99# Configuration
10- MODEL_ID=" nvidia/canary-1b-v2"
10+ MODEL_ID=" nvidia/parakeet-tdt-0.6b-v3 " # "nvidia/ canary-1b-v2"
1111
1212BATCH_SIZE=64
1313
You can’t perform that action at this time.
0 commit comments