You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a very small change that helps quite a lot I've found. The WeNet decoder has an option "length_penalty" which really helps control deletion rates which by default tend to be really high.
A good reference for the code change is in the WeNet code base. The relevant lines are linked below. Basically you add "length_penalty" (a float param with a negative value like -3.0 - so a bonus...) the following two places in ProcessEmitting() in kaldi-decoder/csrc/faster-decoder.cc and of course add the corresponding config option to kaldi-decoder/csrc/faster-decoder.h and kaldi-decoder/python/csrc/faster-decoder.cc:
This is a very small change that helps quite a lot I've found. The WeNet decoder has an option "length_penalty" which really helps control deletion rates which by default tend to be really high.
A good reference for the code change is in the WeNet code base. The relevant lines are linked below. Basically you add "length_penalty" (a float param with a negative value like -3.0 - so a bonus...) the following two places in
ProcessEmitting()
inkaldi-decoder/csrc/faster-decoder.cc
and of course add the corresponding config option tokaldi-decoder/csrc/faster-decoder.h
andkaldi-decoder/python/csrc/faster-decoder.cc
:runtime/core/kaldi/decoder/lattice-faster-decoder.cc#L781-L783
runtime/core/kaldi/decoder/lattice-faster-decoder.cc#L811-L813
The text was updated successfully, but these errors were encountered: