Quality of the CTC decoder / limit inference words to known words only

Hello all,

I’m using a homemade model, for french language, files are ok.

My mic array records in continuous, and inference is done when a vader function cut.

  • When I talk, without noise, inference is very good, but…

  • with TV or other noise, inference produce anything like this :

    le a eaefanke eethe
    It doesn’t correspond to any word in my vocabulary.txt

my question :

How could I restrict inference to known words ? (and forget others)

Thanks all.

Hi, if you check out the hyperparameters and increase LM_WEIGHT and VALID_WORD_COUNT_WEIGHT then you should get better results.

Hi Francob.
Thanks, I’ll try it…
PS : what hyperparams do you use ?

5 for LM_WEIGHT and 3 for VALID_WORD_COUNT_WEIGHT, haven’t optimized them yet though

Hey Francob, How can we optimize LM_WEIGHT , WORD_COUNT_WEIGHT and VALID_WORD_COUNT_WEIGHT

Hi. They are params !
set it like this :

-- WORD_COUNT_WEIGHT = 5 \
...