Skip to main content

A PyPI package for fast word/character error rate (WER/CER) calculation

Project description

FastWER

A PyPI package for fast word/character error rate (WER/CER) calculation

  • fast (cpp implementation)
  • sentence-level and corpus-level WER/CER scores

Installation

pip install fastwer

Example

import fastwer
hypo = ['This is an example .', 'This is another example .']
ref = ['This is the example :)', 'That is the example .']

# Corpus-Level WER: 40.0
fastwer.score(hypo, ref)
# Corpus-Level CER: 25.5814
fastwer.score(hypo, ref, char_level=True)

# Sentence-Level WER: 40.0
fastwer.score_sent(hypo[0], ref[0])
# Sentence-Level CER: 22.7273
fastwer.score_sent(hypo[0], ref[0], char_level=True)

Contact

Changhan Wang (wangchanghan@gmail.com)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastwer-0.1.3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

fastwer-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl (50.9 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

Details for the file fastwer-0.1.3.tar.gz.

File metadata

  • Download URL: fastwer-0.1.3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for fastwer-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2681072b2b35e6a2308d2ff269e582813b96aef855782adc86fc348778c024a1
MD5 e27c0392cdf631e419cb24c92a93689e
BLAKE2b-256 cb4da497cf1554862372a25576ac38c60e4ae4494cd6795aa52a21eab041cfd2

See more details on using hashes here.

File details

Details for the file fastwer-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: fastwer-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 50.9 kB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for fastwer-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 6004e53f5003810c4fccf2e6fff75a9fc9cd93b60747cb11327bd1fad91cf507
MD5 a06988c0af453c25075db5598d1548a7
BLAKE2b-256 1e2131354b3a480baaadb21130080b5c1533cfdc0acf1a3ab45abec9b7bb53b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page