A simple Python package to calculate word error rate (WER).
Project description
pywer
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}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywer-0.1.0.tar.gz
(1.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pywer-0.1.0-py3-none-any.whl
(2.3 kB
view details)
File details
Details for the file pywer-0.1.0.tar.gz.
File metadata
- Download URL: pywer-0.1.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a2fe369eca3f508e4654cb3fbb25d9b02385ef37ae9959931e00c73b4c281f9
|
|
| MD5 |
7107408442513b50eb641d305107d343
|
|
| BLAKE2b-256 |
8393cce21d65d0834b8c7bbca9ea4e2c5e32ef18aaa17ad25a8c77ed15101052
|
File details
Details for the file pywer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pywer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b5943f2109555bb1688d1e15b92ab2fdef6024cb4f717ea00ddd6b6d3d329fc
|
|
| MD5 |
abb02ccbef6dadb070b72d93676d107e
|
|
| BLAKE2b-256 |
bf31ed4e23ff5ee91105da8da02b8a11f450e6c471e204e5453f436bb6294785
|