Skip to main content

pywer

pytest

Pywer is a simple Python package to calculate word error rate (WER). Pywer can also calculate character error rate (CER).

Install

pip install pywer

Usage

import pywer

references = [
    "this is a simple python package",
    "it calculates word error rate",
    "it can also calculate cer",
]
hypotheses = [
    "this is the simple python package",
    "it calculates word error",
    "it can also calculate see er",
]

wer = pywer.wer(references, hypotheses)
cer = pywer.cer(references, hypotheses)
print(f"WER: {wer:.2f}, CER: {cer:.2f}")

Metadata

Release files for pywer 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywer 0.1.1
File Size Uploaded
pywer-0.1.1.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pywer 0.1.1
File Interpreter ABI Platform
pywer-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / pywer-0.1.1.tar.gz

Download URL pywer-0.1.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
15a88defbd31ecb04c10efa161b4092a2c8e9518f2f81ec9e74a26cf2ae5d7bd
BLAKE2b-256 checksum
How to use checksums
80c9f6cdd6e64f345fb0f5dd90d921d95cde6f48f4e11392f49406af34105941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.1

Release files / pywer-0.1.1-py3-none-any.whl

Download URL pywer-0.1.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dd68ad7d16704e96defdb633f6c205314b0063d32e1e9e6907ba1b9fddef8d0
BLAKE2b-256 checksum
How to use checksums
388f738ab294b366badfcfdea398d13aa8b9d27ec6e5a4d2d86b3d78ee3d533e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page