Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance 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

Contributors

AltStyle によって変換されたページ (->オリジナル) /