Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
parler-tts
Commits
e872b4ee
"vscode:/vscode.git/clone" did not exist on "a8eae76f768edb3949689f8593c851c37cf689dd"
Unverified
Commit
e872b4ee
authored
May 23, 2024
by
Yoach Lacombe
Committed by
GitHub
May 23, 2024
Browse files
Fix WER transcription
parent
62d6bf69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
training/eval.py
training/eval.py
+1
-1
No files found.
training/eval.py
View file @
e872b4ee
...
...
@@ -52,7 +52,7 @@ def wer(asr_model_name_or_path, prompts, audios, device, per_device_eval_batch_s
if
len
(
norm_ref
)
>
0
:
norm_pred
=
normalizer
(
pred
[
"text"
])
normalized_predictions
.
append
(
norm_pred
)
normalized_references
.
append
(
norm_
p
re
d
)
normalized_references
.
append
(
norm_re
f
)
word_error
=
100
*
metric
.
compute
(
predictions
=
normalized_predictions
,
references
=
normalized_references
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment