Skip to main content

A high-performance Python package for calculating Word Error Rate (WER), powered by Rust.

Project description

logo-werx

⚡Lightning fast Word Error Rate Calculations

Meta       uv  Ruff  Powered by Rust  Analytics in Motion

What is WERx?

WERx is a high-performance Python package for calculating Word Error Rate (WER), built with Rust for unmatched speed, memory efficiency, and stability. WERx delivers accurate results with exceptional performance, making it ideal for large-scale evaluation tasks.


🚀 Why Use WERx?

Blazing Fast: Rust-powered core delivers outstanding performance, optimized for large datasets

🧩 Robust: Designed to handle edge cases gracefully, including empty strings and mismatched sequences

📐 Accurate: Carefully tested to ensure consistent and reliable results

🛡️ Production-Ready: Minimal dependencies, memory-efficient, and engineered for stability


⚙️ Installation

You can install WERx either with 'uv' or 'pip'.

Using uv (recommended):

uv pip install werx

Using pip:

pip install werx

✨ Usage

Import the WERx package

Python Code:

import werx

Examples:

1. Single sentence comparison

Python Code:

wer = werx.wer('i love cold pizza', 'i love pizza')
print(wer)

Results Output:

0.25

2. Corpus level Word Error Rate Calculation

Python Code:

ref = ['i love cold pizza','the sugar bear character was popular']
hyp = ['i love pizza','the sugar bare character was popular']
wer = werx.wer(ref, hyp)
print(wer)

Results Output:

0.2

📄 License

This project is licensed under the Apache License 2.0.

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

werx-0.1.3.tar.gz (10.8 kB view details)

Uploaded Source

Built Distributions

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

werx-0.1.3-cp313-cp313-win_amd64.whl (135.3 kB view details)

Uploaded CPython 3.13Windows x86-64

werx-0.1.3-cp313-cp313-manylinux_2_34_x86_64.whl (261.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

werx-0.1.3-cp313-cp313-macosx_11_0_arm64.whl (223.6 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

werx-0.1.3-cp312-cp312-win_amd64.whl (135.3 kB view details)

Uploaded CPython 3.12Windows x86-64

werx-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl (261.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

werx-0.1.3-cp312-cp312-macosx_11_0_arm64.whl (223.6 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

werx-0.1.3-cp311-cp311-win_amd64.whl (135.2 kB view details)

Uploaded CPython 3.11Windows x86-64

werx-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl (262.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

werx-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (225.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

werx-0.1.3-cp310-cp310-win_amd64.whl (135.3 kB view details)

Uploaded CPython 3.10Windows x86-64

werx-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl (263.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

werx-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (225.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file werx-0.1.3.tar.gz.

File metadata

  • Download URL: werx-0.1.3.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for werx-0.1.3.tar.gz
Algorithm Hash digest
SHA256 dd8971aff6a61905c1a7fc923a0f6a89772e00d5064fa1522b4f5bd9ca8edfc1
MD5 e1decb4675bf4e93e3d823d5f162f17c
BLAKE2b-256 2a042532fdbfb4faab8d9b8828cf3dab645b400e449a82bec316875d53b7576f

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3.tar.gz:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: werx-0.1.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 135.3 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for werx-0.1.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1dfd74f88e8bd7d349a03d731a32342ef00c2b3c32595e610c985bb8e7db41b3
MD5 f47aa2e3770a73e3833ea5b0710262b7
BLAKE2b-256 112954cb3cc8f720ab52d3140923bedef83ef0e436e991255c98af3d09e328f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp313-cp313-win_amd64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for werx-0.1.3-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 da8a4ffb3f39b0616acdd78a41f2fda19cbd63ff4485beb318f1620008f66176
MD5 e492448e02bbbf7e19c009ee089ee64e
BLAKE2b-256 b4332914e046bad867a049dbfacff4d571cc2f38924564ca753c9584b77b7260

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp313-cp313-manylinux_2_34_x86_64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for werx-0.1.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 874f4f19e6279733b3313d8ef04eeb0ce39b447f5dd65084dca172bfa9fe1e06
MD5 69eb7d103cbd83b2af663979f472e70a
BLAKE2b-256 8025c03723317e9823b87132f7c43760ec2acd0b8d193d98b0f103c8675d5e25

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: werx-0.1.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 135.3 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for werx-0.1.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6681aa2c403873c4a787669653d9fc40d2c59a729be71f723e529cfa42e1895f
MD5 c3109c37690a09759e15b7fad2a65dd2
BLAKE2b-256 0e582b0e0a4de173dbd806949e8d62bb77fc759acfcd836060d1bd53fae09ce0

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp312-cp312-win_amd64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for werx-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f291ef429271c191e48cf40d70fa6517752760f64962959a35d9cfe6f5c90885
MD5 93fff605053fd1429e06fee26c189294
BLAKE2b-256 920d0ffc428f89f9237bc2c09580eb0769305db4729c9b82baaebaf2f66e7e51

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for werx-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e072f44fd8a89d243d7f44851bdf6a4160ad0c5e5c98dc770d82df90d3d7c0ef
MD5 4df08b3d07c0a312a8b0e30543e4919a
BLAKE2b-256 177ff2fc7203f34a76d52ca363b0a41c69d84807e308e5b20a44855a54dfed9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: werx-0.1.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 135.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for werx-0.1.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 99c73b1eed03d441f5513aed8a3d5ebbd67596fe80c9474e3c3c87d17505df8b
MD5 64b548a1f8a7c6965b33a113da013198
BLAKE2b-256 03d11dde0bc8307a9c17e9aa92936f9729df2555fe92273bc2c1a27cb0d4c338

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp311-cp311-win_amd64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for werx-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ac30c87a1eeaf9d33991bbb8784676a75d812e1d7e918de9a427a67692f1d645
MD5 e5849dcb5c449fc0da52f1eb4e823b7f
BLAKE2b-256 5cbc720f1e6bd0678144f1ee128f4d2f99fa13d16371e6a0f11a12b9b1680854

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for werx-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a773a0e790ad4cb3df41e169c97a0b845f9d159a22e3140c1f6fe813eeeb8405
MD5 1be78e1ee19c4f4b72ea355d9fc2758a
BLAKE2b-256 4331f70c804d43867b7707fa9d85f96f62287fe3b14087523a14752abe50e8c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: werx-0.1.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 135.3 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for werx-0.1.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 41e8931e5c2cdb100cb5a6e789e506dee6a29a86cfe3614d0441d2932ea12cc3
MD5 832e20a875acd09222b1ae9f7abed848
BLAKE2b-256 1fc85f8f8d37ee279fddd21fec07c56621b638830fa7a0e7aed2dc675efc6c50

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp310-cp310-win_amd64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for werx-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d6840f513b16790912e551368b95a2aec3de109ae07575f69224fe7af1cacbef
MD5 28cbdeba309e38b9987162863b9a7921
BLAKE2b-256 47385ec95ed7acc041de119e467c98e8424ebd6ec3a20972fa41b9bfe8686b11

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file werx-0.1.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for werx-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4455302c2fe1336358a2f94615b8ef592418128fddbf662fe644e138e0dbdecb
MD5 076fdc4af5daff90373b2004fb56e241
BLAKE2b-256 8242943f7d78640f6fd94ef6cf612df41a0529ae3ddce3d2f4ee0b4a40ca448c

See more details on using hashes here.

Provenance

The following attestation bundles were made for werx-0.1.3-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: CI.yml on analyticsinmotion/werx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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