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

Note: This project is not production ready and is still in early development.

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.core import Dataset

dataset = Dataset()

Add data

From a file:

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

Or manually:

for reference, hypothesis 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:.4f}")

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.0a4.tar.gz (24.0 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.0a4-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bewer-0.1.0a4.tar.gz
  • Upload date:
  • Size: 24.0 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.0a4.tar.gz
Algorithm Hash digest
SHA256 2dc896663729357476ac6f87c5a157111df283fcff5b881b72342db0a653c509
MD5 e7235f38b4626164c7169d6fb2dfad5d
BLAKE2b-256 06788253b8b13270f1f40083738deb628f3fa02bbc6a2c643fe40b48705e6db8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bewer-0.1.0a4-py3-none-any.whl
  • Upload date:
  • Size: 32.5 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.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 8277302b2d1c843cc821ec823367e80221ae01160034b6d61452b989a9a88e0c
MD5 cf249c8d5fbcb13b8c4bc5525cf81af9
BLAKE2b-256 ccc6f4c48691d892d65e1ac8906c8090616ec39b9d0d4d43481915c4ce4734ae

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