Skip to main content

ASR Decoder

Project description

asr-decoder

CTC decoder with hotwords for ASR models. Supports ctc_greedy_search and ctc_prefix_bream_search decoding methods.

Usage

  • ctc greedy search
from asr_decoder import CTCDecoder

decoder = CTCDecoder()
# ctc_probs: (sequence_length, vocab_size)
result = decoder.ctc_greedy_search(ctc_probs, is_last=True)
  • ctc prefix beam search (with hotwords)
from asr_decoder import CTCDecoder

hotwords = ["停止"]
decoder = CTCDecoder(hotwords, symbol_table, bpemodel)
# ctc_probs: (sequence_length, vocab_size)
result = decoder.ctc_prefix_beam_search(ctc_probs, beam_size=3, is_last=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

asr_decoder-0.0.7-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file asr_decoder-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: asr_decoder-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for asr_decoder-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7601f29c572db71cf8b586710f6bfeeb919ccf2d3f43bdf8bf8f002a512a947c
MD5 00042245a4b10f2fac98bc1f3ec9fc5d
BLAKE2b-256 7fd8ba06bab49616f2a98e181a8fd07a5d7da68f92c1f34ae75d82b60a526ae3

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