© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. Kulkarni et al.Natural Language Processing Projects https://doi.org/10.1007/978-1-4842-7386-9_11

11. Text Generation: Next Word Prediction

Akshay Kulkarni1  , Adarsha Shivananda1 and Anoosh Kulkarni2
(1)
Bangalore, Karnataka, India
(2)
Bangalore, India
 

This chapter explores ways to generate text or predict the next word, given the sequence of previous words. Use cases or applications include word/sentence suggestions while typing an e-mail in Gmail or text messages in LinkedIn, and machines writing poems, articles, blogs, chapters of novels, or journal papers.

Figure 11-1 shows an e-mail to Adarsha. As the word Hope is typed, Gmail recommends the next set of ...

Get Natural Language Processing Projects: Build Next-Generation NLP Applications Using AI Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.