Search⌘ K

Introduction: Applications of LSTMs—Generating Text

Explore how to apply LSTMs and GRUs to generate text by training on character-level bigrams with embeddings. Understand language modeling for NLP and techniques like beam search to enhance text quality.

Now that we have a good understanding of the underlying mechanisms of LSTMs, such as how they solve the problem of the vanishing gradient and update rules, we can look at how to use them in NLP tasks. LSTMs are employed for tasks such as text generation and image caption generation. For example, language modeling is at the core of any NLP task because the ability to model language effectively leads to effective language understanding. Therefore, this is typically used for pretraining downstream decision support NLP models. By itself, language modeling can be used to generate songs, movie scripts, ...