Skip to main content

Evaluation and analysis framework for automatic speech recognition in Python.

Project description

BeWER

Beyond Word Error Rate → BeWER (/ˈbiːvər/) 🦫

Python Versions Coverage License

⚠️ Important: This project is not production ready and is still in early development. Breaking changes may occur, and backwards compatibility between alpha versions is not guaranteed.

BeWER is an evaluation and analysis framework for automatic speech recognition in Python. It defines a transparent YAML-based approach for configuring evaluation pipelines and makes it easy to inspect and analyze individual examples through a web-based interface. The built-in preprocessing pipeline and metrics collection are designed to cover all conventional use cases and then some, while still being fully extensible.

Contents | Installation | Quickstart |

Installation

pip install bewer

Quickstart

Create a Dataset

from bewer import Dataset

dataset = Dataset()

Add data

From a file:

dataset.load_csv(
    "data.csv",
    ref_col="reference",
    hyp_col="hypothesis",
)

Or manually:

for ref, hyp in iterator:
    dataset.add(ref=ref, hyp=hyp)

List available metrics

dataset.metrics.list_metrics()

Compute metrics lazily

print(f"WER: {dataset.metrics.wer().value:.2%}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bewer-0.1.0a9.tar.gz (42.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bewer-0.1.0a9-py3-none-any.whl (60.7 kB view details)

Uploaded Python 3

File details

Details for the file bewer-0.1.0a9.tar.gz.

File metadata

  • Download URL: bewer-0.1.0a9.tar.gz
  • Upload date:
  • Size: 42.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bewer-0.1.0a9.tar.gz
Algorithm Hash digest
SHA256 b1836817febbe176a1b4d5ccc00c10c86258a7a3c44280376dbb67e2c0e6c229
MD5 dc7e90144edd987d9f0ae425eef8e545
BLAKE2b-256 192f49034f2f9050c11375b67c31d4a813bf69857862b8bd32e4c824a35e5f85

See more details on using hashes here.

File details

Details for the file bewer-0.1.0a9-py3-none-any.whl.

File metadata

  • Download URL: bewer-0.1.0a9-py3-none-any.whl
  • Upload date:
  • Size: 60.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bewer-0.1.0a9-py3-none-any.whl
Algorithm Hash digest
SHA256 12473fa50773d0f7d6748e3e320beb25a27d7ae66e02cb956e798bcc3d9e2657
MD5 e61bbf154d55fdeac3db62993a6bf373
BLAKE2b-256 e2f47fb7a915fda0ed3d246752f1dd3161a9e51ed4313ba1d5ad628f3c63298f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page