openspeech-team / openspeech

Open-Source Toolkit for End-to-End Speech Recognition leveraging PyTorch-Lightning and Hydra.
https://openspeech-team.github.io/openspeech/
MIT License
670 stars 112 forks source link

How to modify CTC criterion / decoding algorithm? #203

Closed EomSooHwan closed 1 year ago

EomSooHwan commented 1 year ago

❓ Questions & Help

I have two questions: (1) How can I use my modified version of CTC algorithm for training? (2) How can I change CTC decoding strategy of the mode?

Details

I am currently running conformer (encoder-only) model, and I want to use my own modified version of CTC. I have my_ctc.py, which contains my own CTC algorithm my_ctc( ). In this case, how can I modify the hyperparameter or the source code in order to make my model to use from my_ctc import my_ctc( )? Also, what should I do if I want to use greedy algorithm instead of beam search for CTC decoding strategy?