- edit_dist.cpp:
$ g++ edit_dist.cpp -o edit_dist
- edit_dist.py:
$ pip install python-Levenshtein
- edit_dist.cpp:
$ ./edit_dist gt.txt sub.txt
- edit_dist.py:
$ python edit_dist.py gt.txt sub.txt
File: sub.txt.
Edit distance 88
# correct 1150
# add 1
# sub 6
# del 81
Total score: 710
The Total score
is calculated by #correct - 5 * (#add + #sub + $del)
.