Skip to main content

No project description provided

Project description

asrp

ASR text preprocessing utility

install

pip install asrp

usage - preprocess

input: dictionary, with key sentence
output: preprocessed result, inplace handling.

import asrp

batch_data = {
    'sentence': "I'm fine, thanks."
}
asrp.fun_en(batch_data)

dynamic loading

import asrp

batch_data = {
    'sentence': "I'm fine, thanks."
}
preprocessor = getattr(asrp, 'fun_en')
preprocessor(batch_data)

usage - evaluation

import asrp

targets = ['HuggingFace is great!', 'Love Transformers!', 'Let\'s wav2vec!']
preds = ['HuggingFace is awesome!', 'Transformers is powerful.', 'Let\'s finetune wav2vec!']
print("chunk size WER: {:2f}".format(100 * asrp.chunked_wer(targets, preds, chunk_size=None)))
print("chunk size CER: {:2f}".format(100 * asrp.chunked_cer(targets, preds, chunk_size=None)))

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

asrp-0.0.3.tar.gz (13.1 kB view details)

Uploaded Source

Built Distributions

asrp-0.0.3-py3.7.egg (16.8 kB view details)

Uploaded Source

asrp-0.0.3-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file asrp-0.0.3.tar.gz.

File metadata

  • Download URL: asrp-0.0.3.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for asrp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 75ecb3f9a39a9e7bbcc0bcacd7005bb6bebdede7393cf8cc45de33c01ef541b9
MD5 b25e5d716dba059099ebb34eeaba0379
BLAKE2b-256 c091a37b1c6a92105b9665fff59c7e8300277300df3a06a47939f562fdb31979

See more details on using hashes here.

File details

Details for the file asrp-0.0.3-py3.7.egg.

File metadata

  • Download URL: asrp-0.0.3-py3.7.egg
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for asrp-0.0.3-py3.7.egg
Algorithm Hash digest
SHA256 4455e07635a4ea2025bf6ef606fcf7e2212c5956c911fc05a7796edbcd958e41
MD5 ef86352e85e83e0be1c16eff1f5e6f35
BLAKE2b-256 46fd1a1eafb369b238c0aacb00e46d4a3a53a8ed645a9a30f6ba9b30ab6a5082

See more details on using hashes here.

File details

Details for the file asrp-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: asrp-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for asrp-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 542e331a1c90cdd46c991b1f7237856a516acaea5fff99f7bdc62d40de55ba0b
MD5 c1a2dc018ea615e538cf1c0c797ae482
BLAKE2b-256 09759fc6a9de75c228e09a11365de119b5d3df9b3ade2b55f06ce4ff3502091f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page