Skip to content

henning410/character-error-rate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Character-Error-Rate

npm package for calculating the character-error-rate between two strings to evaluate speech recognition quality. Complexity of levenshtein distance is being improved from O(m*n) to O(min(m,n)).

Prerequisites

This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.

$ npm -v && node -v
6.4.1
v8.16.0

Installation

BEFORE YOU INSTALL: please read the prerequisites

Install the npm-package

$ npm i character-error-rate

Usage

You can decide if punctuation and capitalization should be considered in the calculation.

 calcCER(reference: string, transcription: string, withPunctuation: boolean, withCapitalization: boolean));
import calcCER from 'character-error-rate';

console.log('CER: ', calcCER('reference text', 'transcription text', true, true));

Authors

  • Henning Weise - Initial work - GitHub
  • Milot Mirdita - Levenshtein distance algorithm - GitHub

License

MIT License © Henning Weise

About

npm package for calculating the character-error-rate between two strings to evaluate speech recognition quality

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published