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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asr_decoder-0.1.2-py3-none-any.whl.
File metadata
- Download URL: asr_decoder-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c698df3ba49c23d5f86b4730b7c6d815c681fcb9a47d0c0ac5e243d30e03b0c
|
|
| MD5 |
93683257eb15d288a925ba9e33c11c48
|
|
| BLAKE2b-256 |
03a0b7a7c0eb20e0efaa04fd784b8bdfacac33c9866bd18e209c498118a4c935
|