python-word-error-rate icon indicating copy to clipboard operation
python-word-error-rate copied to clipboard

substitution, insertion and deletion

Open keaixiaovv opened this issue 4 years ago • 2 comments

Is there any way to know the times of 'substitution', 'insertion' and 'deletion' ?

keaixiaovv avatar Mar 04 '21 07:03 keaixiaovv

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).

pawsengineer avatar Mar 04 '21 07:03 pawsengineer

I have achieved the function according to the way you said, thank you very much!

keaixiaovv avatar Mar 04 '21 09:03 keaixiaovv