Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Deep Learning with TensorFlow

You're reading from  Deep Learning with TensorFlow

Product type Book
Published in Apr 2017
Publisher Packt
ISBN-13 9781786469786
Pages 320 pages
Edition 1st Edition
Languages
Authors (3):
Giancarlo Zaccone Giancarlo Zaccone
Profile icon Giancarlo Zaccone
Md. Rezaul Karim Md. Rezaul Karim
Profile icon Md. Rezaul Karim
Ahmed Menshawy Ahmed Menshawy
Profile icon Ahmed Menshawy
View More author details

Table of Contents (11) Chapters

Preface 1. Getting Started with Deep Learning 2. First Look at TensorFlow 3. Using TensorFlow on a Feed-Forward Neural Network 4. TensorFlow on a Convolutional Neural Network 5. Optimizing TensorFlow Autoencoders 6. Recurrent Neural Networks 7. GPU Computing 8. Advanced TensorFlow Programming 9. Advanced Multimedia Programming with TensorFlow 10. Reinforcement Learning

Text prediction

Language computational models based on RNNs are nowadays among the most successful techniques for statistical language modeling. They can be easily applied in a wide range of tasks, including automatic speech recognition and machine translation.

In this section, we'll explore an RNN model on a challenging task of language processing, guessing the next word in a sequence of text.

You'll find a complete reference for this example in the following page:
https://www.tensorflow.org/versions/r0.8/tutorials/recurrent/index.html.

You can download the source code for this example here (official TensorFlow project GitHub page):
https://github.com/tensorflow/models/tree/master/tutorials/rnn/ptb.

The files to download are as follows:

  • ptb_word_lm.py: This file contains code to train the model on the PTB dataset
  • reader.py: This file contains code to read the dataset

Here we just present only the main...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}