Skip to main content

Word Error Rate for Air Traffic Control

Project description

airwer

Word Error Rate for Air Traffic Control.

Install

pip install airwer

Usage

import airwer

airwer.wer("descend flight level two five zero", "descend FL250")  # 0.0
airwer.wer("turn heading two one zero", "turn heading 220")        # > 0.0

API

Each takes a single utterance (str) or a corpus (Sequence[str]), plus an optional WerConfig to override the default CANONICAL profile.

Function What it scores
wer(ref, hyp) Corpus Word Error Rate (the default metric)
cer(ref, hyp) Character Error Rate
numeric_wer(ref, hyp) WER over numbers only - safety-critical digits
agreement(a, b) Symmetric [0, 1] overlap of two transcripts (1 = identical), for model-vs-model voting
ladder(ref, hyp) WER at each normalization rung, raw to semantic
process(ref, hyp) Full WerResult - every metric plus per-utterance and distribution stats

normalize(text) exposes the normalization step on its own. WerConfig, the profiles presets, and the vocab term lists let you tune phraseology handling.

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

airwer-0.2.4.tar.gz (89.4 kB view details)

Uploaded Source

Built Distribution

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

airwer-0.2.4-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file airwer-0.2.4.tar.gz.

File metadata

  • Download URL: airwer-0.2.4.tar.gz
  • Upload date:
  • Size: 89.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for airwer-0.2.4.tar.gz
Algorithm Hash digest
SHA256 f322f4d5582a894e310196442945f6c6ab2cc32aa5f0f4c2786c7153c1fe4d3e
MD5 7267edbd5ea70514fe062f3d61127897
BLAKE2b-256 8c78ce3119aed2600e16e7ffca20f3c247c0c7a7bff80f5e3f0db3128d67c142

See more details on using hashes here.

Provenance

The following attestation bundles were made for airwer-0.2.4.tar.gz:

Publisher: python.yml on twangodev/airwer

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

File details

Details for the file airwer-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: airwer-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for airwer-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3724ee6baa487637f8701c72a84937fb1f079a18bd9242b34b451fd95c2096ce
MD5 0f2a5b7411bcd462fd3fdd93a245c229
BLAKE2b-256 08bf45f87b164be43c045b028e4f0ec4c6b83d2bf06293ec7da6d7ae40de86dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for airwer-0.2.4-py3-none-any.whl:

Publisher: python.yml on twangodev/airwer

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