© Özgür Sahin 2021
Ö. SahinDevelop Intelligent iOS Apps with Swifthttps://doi.org/10.1007/978-1-4842-6421-8_4

4. Text Generation

Özgür Sahin1  
(1)
Feneryolu Mh. Goztepe, Istanbul, Turkey
 

Text generation lets us auto-complete the sentences with appropriate words or phrases. In recent years, text generation with neural network models significantly improved. These models often benefited from recurrent neural networks or transformers. In this chapter, we will learn how to use one of the best text generation models (GPT-2) and build an iOS application using this model. Our application will use built-in OCR capabilities to capture text from camera and generate text based on scanned sentences.

GPT-2

GPT-2 is a successor model to GPT (Generative Pretrained ...

Get Develop Intelligent iOS Apps with Swift: Understand Texts, Classify Sentiments, and Autodetect Answers in Text Using NLP 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.