• Caroline Chen's avatar
    Add no lm support for CTC decoder (#2174) · 4c3fa875
    Caroline Chen authored
    Summary:
    Add support for CTC lexicon decoder without LM support by adding a non language model `ZeroLM` that returns score 0 for everything. Generalize the decoder class/API a bit to support this, adding it as an option for the kenlm decoder at the moment (will likely be separated out from kenlm when adding support for other kinds of LMs in the future)
    
    Pull Request resolved: https://github.com/pytorch/audio/pull/2174
    
    Reviewed By: hwangjeff, nateanl
    
    Differential Revision: D33798674
    
    Pulled By: carolineechen
    
    fbshipit-source-id: ef8265f1d046011b143597b3b7c691566b08dcde
    4c3fa875
inference.py 4.14 KB