Skip to main content

Evaluation and analysis framework for automatic speech recognition in Python.

Project description

BeWER

Python Versions Coverage PyPI 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.0a11.tar.gz (44.7 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.0a11-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bewer-0.1.0a11.tar.gz
Algorithm Hash digest
SHA256 b368fa4ea2e997cc0147ca88e4345507e090b0b6b01e6e8a9ce587d33e11d236
MD5 c627c0c7a1a52cbc18b969ba0ff30574
BLAKE2b-256 bc9b310dc7d29192be919649f8d4298dc810b2daf4e3fe8717638635c4c99440

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bewer-0.1.0a11-py3-none-any.whl
Algorithm Hash digest
SHA256 5d7fa359e04e39647a03e2f80f972e58f28ec6c1fd6014b47e51decf4f568746
MD5 64c891e68fa379a8b557fbe0fda61e2c
BLAKE2b-256 b975486390a0818c41391d070e79438c8532e382a29d99aedc048eb2b61a1c09

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