JiWER
JiWER is a simple and fast python package to evaluate an automatic speech recognition system. It supports the following measures:
- word error rate (WER)
- match error rate (MER)
- word information lost (WIL)
- word information preserved (WIP)
- 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 uv:
$ uv add jiwer
Or, if you prefer old-fashioned pip and you're using Python >= 3.8:
$ 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.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jiwer-3.1.0.tar.gz | 103.2 kB | Without provenance | Details for jiwer-3.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jiwer-3.1.0-py3-none-any.whl | Python 3 | none | any | Details for jiwer-3.1.0-py3-none-any.whl |
Total release size: 125.5 kB
Release files / jiwer-3.1.0.tar.gz
| Download URL | jiwer-3.1.0.tar.gz |
|---|---|
| Size | 103.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc492d09e570f1baba98c76aba09baf8e09c06e6808a4ba412dd4bde67fb79ac
|
|
BLAKE2b-256 checksum How to use checksums |
853e71b95cf0e2179fb5de8744a79fd36c8bd4e02e1803129a16d423884b6654
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.16
|
Release files / jiwer-3.1.0-py3-none-any.whl
| Download URL | jiwer-3.1.0-py3-none-any.whl |
|---|---|
| Size | 22.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a14b5bba4692e1946ca3c6946435f7d90b1b526076ccb6c12be763e2146237d
|
|
BLAKE2b-256 checksum How to use checksums |
baf435634d9eeff3b0bab51f5b9474ee569b1186bf29cf0d9d67b84acc80c53d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.16
|
Security for jiwer 3.1.0
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.