Skip to main content

Compute Word Error Rate for Tibetan language text.

Project description

Tibetan-WER

This module provides a means to calculate Word Error Rate for Tibetan language text.

Install

Install the library to get started:

pip install --upgrade tibetan_wer

Usage

The wer function expects a list of predictions and a list of references and returns a dictionary of the micro and macro average WER as well as the total number of substitutions, insertions, and deletions.

from tibetan_wer.wer import wer

rediction = ['གཞོན་ནུར་གྱུར་པ་ལ་ཕྱག་འཚལ་ལོ༔']
reference = ['འཇམ་དཔལ་གཞོན་ནུར་གྱུར་པ་ལ་ཕྱག་འཚལ་ལོ༔']

result = wer(prediction, reference)

print(f'Micro-Average WER Score: {result['micro_wer']}')
print(f'Macro-Average WER Score: {result['macro_wer']}')
print(f'Substitutions: {result['substitutions']}')
print(f'Insertions: {result['insertions']}')
print(f'Deletions: {result['deletions']}')

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

tibetan_wer-0.0.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

tibetan_wer-0.0.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file tibetan_wer-0.0.2.tar.gz.

File metadata

  • Download URL: tibetan_wer-0.0.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for tibetan_wer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6970bf16781096249e27f9209baff7337814594a272d00b7c19a492ae1d7e42c
MD5 5706aaac0a768c3304f2cd3c119285ae
BLAKE2b-256 967b16ea994dcbde575ef14315a3822bf83233e98b52d6803544efd9253d22fb

See more details on using hashes here.

File details

Details for the file tibetan_wer-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tibetan_wer-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for tibetan_wer-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb6f4d236ae7bd9e2a0aa30a747e0243df8dce4ff5b94935f8fa642aab834426
MD5 48a196b5b2b681c5ce323d28406b26b3
BLAKE2b-256 2ef8d5f0e751655fab24fb2f34d0af60b4671fccd3a3c64e4dbf16437d339026

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