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

Fix normalization in edit_distance op #8245

Closed

Conversation

wanghaoshuang
Copy link
Contributor

fix #8199

@wanghaoshuang wanghaoshuang requested a review from kuke February 7, 2018 14:09
@kuke
Copy link
Contributor

kuke commented Feb 7, 2018

It is not reasonable to normalize edit distance by the max length of two strings. Actually the normalization of edit distance is the definition of word/character error rate (https://en.wikipedia.org/wiki/Word_error_rate), and the denominator should always be the length of reference string.

@wanghaoshuang wanghaoshuang deleted the fix_edit_dis branch February 9, 2018 02:28
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.

Change output of edit_distance_op to average error
2 participants