python-word-error-rate
python-word-error-rate copied to clipboard
substitution, insertion and deletion
Is there any way to know the times of 'substitution', 'insertion' and 'deletion' ?
Yes, you can!!!.
Instead of printing only HTML of each operation, you can count operations that are occurred while calculating (in word_error_rate.py#L59, #L62, and #L65).
I have achieved the function according to the way you said, thank you very much!