Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

character-error-rate

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

character-error-rate

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

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by30%
Maintainers
1
Weekly downloads
 
Created
Source

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 @henning410/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 '@henning410/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

Keywords

FAQs

Package last updated on 30 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc