Package Exports
- character-error-rate
- character-error-rate/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (character-error-rate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.0Installation
BEFORE YOU INSTALL: please read the prerequisites
Install the npm-package
$ npm i @henning410/character-error-rateUsage
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
License
MIT License © Henning Weise