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

Added the ability to return the dictionary to the WER metric. #521

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

blademoon
Copy link

@blademoon blademoon commented Nov 25, 2023

Hello. Added the ability to return the result in the dictionary to the WER metric. I'm not sure I've done everything correctly (it's the first time I suggest changes for the bibiloteka). #516

The essence of the problem: Because the WER metric returns a value, but not a dictionary containing the name of the metric and its value, with it often have to do unnecessary conversion constructs.

This is my proposal to solve this problem while maintaining compatibility with the old code.

That is, add an additional parameter to this metric that has a default value. This parameter defines the type of the returned parameter.

I will be grateful if you can tell me how to test and what else should be done.

…the metric can return two different data types: - old variant - only value (float)

- new variant - dictionary with a key containing the metric name and value (float type).
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

1 participant