> For the complete documentation index, see [llms.txt](https://vikram-bajaj.gitbook.io/deep-learning-specialization-coursera/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vikram-bajaj.gitbook.io/deep-learning-specialization-coursera/main-10/sequence-models/recurrent-neural-networks/language-modeling.md).

# Language Modeling

The aim of language modeling is to output the probability of a sentence.

Language models are used in speech recognition and machine translation systems, where it can be useful to know the most probable sentence. Ex. if a machine hears "today is a great day", it should know to use "great" instead of "grate".

A language model can be trained using a sufficiently large corpus of text.

It can be used to predict the probability of the next word in a sentence, given the previous word(s).
