GithubHelp home page GithubHelp logo

liyong3forever / asr-evaluation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from belambert/asr-evaluation

0.0 1.0 0.0 58 KB

Python module for evaluating ASR hypotheses (e.g. word error rate, word recognition rate).

License: BSD 2-Clause "Simplified" License

Python 100.00%

asr-evaluation's Introduction

============== asr_evaluation

Build Status PyPI version Coverage Status

Python module for evaluting ASR hypotheses (i.e. word error rate and word recognition rate).

This module depends on my editdistance project, for computing edit distances between arbitrary sequences.

The formatting of the output of this program is very loosely based around the same idea as the align.c program commonly used within the Sphinx ASR community. This may run a bit faster if neither instances nor confusions are printed.

Please let me know if you have any comments, questions, or problems.

Installing & uninstalling

The easiest way to install is using pip:

pip install asr-evaluation

Alternatively you can clone this git repo and install using distutils:

git clone [email protected]:belambert/asr-evaluation.git
cd asr-evaluation
python setup.py install

To uninstall with pip:

pip uninstall asr-evaluation

Command line usage

For command line usage, see:

    python bin/evaluate.py --help

It should be something like this:

    usage: evaluate.py [-h] [-i] [-id] [-c] [-p] [-m count] ref hyp
    
    Evaluate an ASR transcript against a reference transcript.
    
    positional arguments:
      ref                   the reference transcript filename
      hyp                   the ASR hypothesis filename
    
    optional arguments:
      -h, --help            show this help message and exit
      -i, --print-instances
                            print the individual sentences and their errors
      -id, --has-ids        hypothesis and reference files have ids in the last
                            token?
      -c, --confusions      print tables of which words were confused
      -p, --print-wer-vs-length
                            print table of average WER grouped by reference
                            sentence length
      -m count, --min-word-count count
                            minimum word count to show a word in confusions

asr-evaluation's People

Contributors

belambert avatar

Watchers

Yong Li 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.