Search⌘ K

Introduction

Explore building LSTM networks for language modeling to quantify text quality by calculating word probabilities. Understand how language models support text classification and generation, enabling applications like spam detection and autocomplete features.

In this section, you will be building an LSTM (long short-term memory) network for language modeling.

A. Language modeling

The main idea of machine learning in NLP is to train a model to understand a text corpus well enough so that it can automatically perform tasks such as text classification or text generation. In order to do this, a ...