Deepspeech: Replace KenLM Language Model with TF Language Model

Created on 29 Jun 2017  路  8Comments  路  Source: mozilla/DeepSpeech

P3 enhancement

Most helpful comment

Adding this to the 1.0.0 project. This may get implemented there, and it may not dependent upon the LM work done there

All 8 comments

@kdavis-mozilla can we have our own language model using the existing acoustic model. If so please can you give some glimpse of it.

@rajateku6 This is suggesting a specific enhancement to the code. If you wish to train another KenLM language model please add your question to the Discourse Forum.

I would like to work on making the language model interface more general. Do you think this would be a good approach:

Make Scorer a generic class that subtypes of scorers inherit from (e.g. KenlmScorer). Each subtype of scorer would have to implement get_log_prob() in their own way. This way, someone could write their own scorer using tensorflow much more easily. @ftyers

Thanks for the interest, that'd be a great contribution! The approach sounds good, although I'm not entirely sure get_lob_prob is the only API we'd have to surface from the Scorer. There's also the question of different scorers having different initialization and configuration parameters, and how to expose that in the main DeepSpeech API. But that's a worry for the future, just having an initial abstraction that can be used to experiment with new implementations would be really great to have.

Adding this to the 1.0.0 project. This may get implemented there, and it may not dependent upon the LM work done there

Was this plan delayed or abandoned?

FWIW think this would be an excellent addition, TF or torch model, maybe leverage transformer library or something similar

FWIW think this would be an excellent addition, TF or torch model, maybe leverage transformer library or something similar

I agree. The current model seems to underperform the competition In the real world while requiring a much larger filesize. In the last two years transformers have revolutionized the LM landscape. Architectures like BERT/DistilBERT/XLM also open interesting opportunities for improving a transcribed word based on context heard afterwards.

Was this page helpful?
0 / 5 - 0 ratings