Coder Social home page Coder Social logo

asr_evaluation_cn's Introduction

ASR_Evaluation_CN

中文ASR评测指标,WER和SER计算。

Calculate asr evaluation like WER and SER in Chinese. Calculate levenshtein distance.

Requirements

  • Python 3.7+

WER

WER: Word Error Rate

$$ WER=\frac {S+D+I}{N} = \frac {S+D+I}{S+D+C} $$

  • S: the number of subsitutions. 替换的数量
  • D: the number of deletions. 删掉的数量
  • I: the number of insertions. 插入的数量
  • C: the number of correct words. 正确的数量
  • N: the number of words in the reference. 总字数

SER (Same like flow)

SER: Sentence Error Rate

$$SER=\frac {S+D+I}{N} = \frac {S+D+I}{S+D+C}$$

  • S: the number of subsitutions.
  • D: the number of deletions.
  • I: the number of insertions.
  • C: the number of correct words.
  • N: the number of words in the reference.

Usage

git clone [email protected]:yanhuibin315/ASR_Evaluation_CN.git
python demo.py

例子

标准结果:

["你好", "**"]

识别结果:

["你嗨", "**"]

WER = 1/4 = 0.25

SER = 1/2 = 0.5

asr_evaluation_cn's People

Contributors

ygbingo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.