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

is it possible to get the exact word insertion/deletion for the WER #13

Closed
orena1 opened this issue Dec 18, 2019 · 6 comments
Closed

is it possible to get the exact word insertion/deletion for the WER #13

orena1 opened this issue Dec 18, 2019 · 6 comments

Comments

@orena1
Copy link

orena1 commented Dec 18, 2019

I wonder if I can get the words that need to be deleted or inserted to get the wer?
Assuming I use wer(['i','am','g'],['i','am','f']). that it will tell me that there is a problem with the 3rd word.

@nikvaessen
Copy link
Collaborator

nikvaessen commented Dec 19, 2019

I think it's possible by using the shortest path found by wagner-fisher algorithm. But it's not implemented in this library.

@davidrft
Copy link

davidrft commented Jul 2, 2020

You can get that by using Levenshtein.editops, that's what jiwer is using in _get_operation_counts. May this function could be made public?

@nikvaessen
Copy link
Collaborator

I would choose to either include it in jiwer.compute_measures()

or provide a new public method which hides the complexity but offers this functionality. Something like jiwer.compute_corrections()?

@orena1
Copy link
Author

orena1 commented Jul 13, 2020

Both are good, thanks!

@mpariente
Copy link
Contributor

Some news about this please?

@nikvaessen
Copy link
Collaborator

This feature has been implemented by #35 and released in version 2.2.0!

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

No branches or pull requests

4 participants