Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accelerate the calculation for CER metrics #104

Merged
merged 3 commits into from
Jan 16, 2024

Conversation

wsywsywsywsywsy979
Copy link
Contributor

✨ Description

background: The code for the original evaluation of Word Error Rate (WER) is slow and cannot calculate WER based on transcription as the ground truth."
purpose: Accelerate the batch evaluation of Word Error Rate (WER) and add code to calculate WER based on transcription as the ground truth.
changes made: change code in calc_metrics.py and word_error_rate.py , and Labeled as 'wsy fix'
how to test this PR: You can perform testing by setting the entry parameters of calc_metrics.py.

@VocodexElysium
Copy link
Collaborator

Thanks for your effort! Please use black to reformat your code so that we can merge your code in.

Copy link
Collaborator

@RMSnow RMSnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@RMSnow RMSnow merged commit a840088 into open-mmlab:main Jan 16, 2024
1 check passed
@RMSnow RMSnow changed the title fix calc_metrics.py and word_error_rate.py Accelerate the calculation for CER metrics Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants