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.0a16.tar.gz (49.2 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.0a16-py3-none-any.whl (74.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bewer-0.1.0a16.tar.gz
  • Upload date:
  • Size: 49.2 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.0a16.tar.gz
Algorithm Hash digest
SHA256 5e136e5db5a61d468c2b649267a481b4a2fbd8884621308b47c1bd6e0fd10001
MD5 4c90c1a785d317ac74f86521198b44f3
BLAKE2b-256 75db44c5aaacd0c0039fa87ee3800dc03103c5e6d425e0ec2994abd4cddbef24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bewer-0.1.0a16-py3-none-any.whl
  • Upload date:
  • Size: 74.5 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.0a16-py3-none-any.whl
Algorithm Hash digest
SHA256 9d66dab1e92139cb96d93ce37a4fa150c2ae90d64f5f1d91bd1bece4abe1315e
MD5 20c1bb58a896a77ebc488e1cb9d7c0e4
BLAKE2b-256 273f6e9bf4a22a01b80f53249611156d94334fbcab84a816a0f5e40eb7b3b075

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