- Based on WER-in-python and kaldi's compute-wer.cc implementation of computing word-error-rate (WER) using edit distance dynamic programming. I port the algorithm into C++ with new features:
- Support multi-line reference and hypothesis
- Improve the runtime and feasibility when aligning long sentences
git clone https://github.com/dangkhoadl/WER-in-cpp.git
cd WER-in-cpp
make buildchmod +x compute-wer
./compute-wer [Reference] [Hypothesis]- Reference
samples/ref - Hypothesis
samples/hyp - Result:
./compute-wer samples/ref samples/hyp
