Skip to main content

JiWER

JiWER is a simple and fast python package to evaluate an automatic speech recognition system. It supports the following measures:

  1. word error rate (WER)
  2. match error rate (MER)
  3. word information lost (WIL)
  4. word information preserved (WIP)
  5. character error rate (CER)

These measures are computed with the use of the minimum-edit distance between one or more reference and hypothesis sentences. The minimum-edit distance is calculated using RapidFuzz, which uses C++ under the hood, and is therefore faster than a pure python implementation.

Documentation

For further info, see the documentation at jitsi.github.io/jiwer.

Installation

You should be able to install this package using poetry:

$ poetry add jiwer

Or, if you prefer old-fashioned pip and you're using Python >= 3.7:

$ pip install jiwer

Usage

The most simple use-case is computing the word error rate between two strings:

from jiwer import wer

reference = "hello world"
hypothesis = "hello duck"

error = wer(reference, hypothesis)

Licence

The jiwer package is released under the Apache License, Version 2.0 licence by 8x8.

For further information, see LICENCE.

Reference

For a comparison between WER, MER and WIL, see:
Morris, Andrew & Maier, Viktoria & Green, Phil. (2004). From WER and RIL to MER and WIL: improved evaluation measures for connected speech recognition.

Metadata

Release files for jiwer 3.0.2

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

Source distribution (sdist)

Source distribution for jiwer 3.0.2
File Size Uploaded Provenance Actions
jiwer-3.0.2.tar.gz 17.5 kB Without provenance Details for jiwer-3.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 39.4 kB

Release files / jiwer-3.0.2.tar.gz

Download URL jiwer-3.0.2.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
52bb2a3dba0589e85e6598c40c413e1f2a6a2f7f7c57ce9f7b2c094039618235
BLAKE2b-256 checksum
How to use checksums
61f3f207a51f270b6dc0fe2ed1f91cf5b7d86e29648df383865a0ed9bc41398b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1039-azure

Release files / jiwer-3.0.2-py3-none-any.whl

Download URL jiwer-3.0.2-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cbf5872e0431942847765e444b338cd74ed9a96682532da87e46575010b76fd2
BLAKE2b-256 checksum
How to use checksums
23a392c29a5e422acd87e3b4f2e6dc0ce877070cc9b2f81d30fe84122032338a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1039-azure

Security for jiwer 3.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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