Skip to content

Calculates the word error rate between the reference and hypothesis in ASR, then print the aligned result.

License

Notifications You must be signed in to change notification settings

dangkhoadl/WER-in-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WER-in-cpp

  • 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

build

git clone https://github.com/dangkhoadl/WER-in-cpp.git
cd WER-in-cpp
make build

Usage

chmod +x compute-wer
./compute-wer [Reference] [Hypothesis]

Examples

  • Reference samples/ref
  • Hypothesis samples/hyp
  • Result: ./compute-wer samples/ref samples/hyp

About

Calculates the word error rate between the reference and hypothesis in ASR, then print the aligned result.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published