Metadata-Version: 2.1
Name: pywer
Version: 0.1.1
Summary: A simple Python package to calculate word error rate (WER).
Home-page: https://github.com/jumon/pywer
Author: jumon
Author-email: jumon.nozaki@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: editdistance

# pywer
![pytest](https://github.com/jumon/pywer/workflows/pytest/badge.svg)

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
```python
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}")
```


