Commit 693f069
authored
zipformer/ctc_align.py (k2-fsa#2020)
* zipformer/ctc_align.py
- tool for forced-alignment with CTC model
- provides timeline, computes per-token and per-utterance acoustic confidences
- based on torchaudio `forced_align()`
- confidences are computed in several ways
other modifications:
- LibriSpeechAsrDataModel extended with `::load_manifest()` to allow
passing-in cutset from CLI.
- update @custom_fwd @custom_bwd in scaling.py
- streaming_decode.py update errs/recogs/log filenames '-' <-> '_'
* putting back `custom_bwd`, `custom_fwd`
* integrating remarks from PR
* update of argparse help strings
* ctc_align.py, avoid shadowing a variable
* Finalizing the code:
- adding some coderabbit suggestions.
- removing `word_table`, `decoding_graph` from aligner API (unused)
- improved consistency of variable names (confidences)
- updated docstrings1 parent 729a5ba commit 693f069
File tree
3 files changed
+663
-11
lines changed- egs/librispeech/ASR
- tdnn_lstm_ctc
- zipformer
3 files changed
+663
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
405 | 413 | | |
406 | 414 | | |
407 | 415 | | |
| |||
0 commit comments