Book description
From introductory NLP tasks to Transformer models, this new edition teaches you to utilize powerful TensorFlow APIs to implement end-to-end NLP solutions driven by performant ML (Machine Learning) models
Key Features
- Learn to solve common NLP problems effectively with TensorFlow 2.x
- Implement end-to-end data pipelines guided by the underlying ML model architecture
- Use advanced LSTM techniques for complex data transformations, custom models and metrics
Book Description
Learning how to solve natural language processing (NLP) problems is an important skill to master due to the explosive growth of data combined with the demand for machine learning solutions in production. Natural Language Processing with TensorFlow, Second Edition, will teach you how to solve common real-world NLP problems with a variety of deep learning model architectures.
The book starts by getting readers familiar with NLP and the basics of TensorFlow. Then, it gradually teaches you different facets of TensorFlow 2.x. In the following chapters, you then learn how to generate powerful word vectors, classify text, generate new text, and generate image captions, among other exciting use-cases of real-world NLP.
TensorFlow has evolved to be an ecosystem that supports a machine learning workflow through ingesting and transforming data, building models, monitoring, and productionization. We will then read text directly from files and perform the required transformations through a TensorFlow data pipeline. We will also see how to use a versatile visualization tool known as TensorBoard to visualize our models.
By the end of this NLP book, you will be comfortable with using TensorFlow to build deep learning models with many different architectures, and efficiently ingest data using TensorFlow Additionally, you’ll be able to confidently use TensorFlow throughout your machine learning workflow.
What you will learn
- Learn core concepts of NLP and techniques with TensorFlow
- Use state-of-the-art Transformers and how they are used to solve NLP tasks
- Perform sentence classification and text generation using CNNs and RNNs
- Utilize advanced models for machine translation and image caption generation
- Build end-to-end data pipelines in TensorFlow
- Learn interesting facts and practices related to the task at hand
- Create word representations of large amounts of data for deep learning
Who this book is for
This book is for Python developers and programmers with a strong interest in deep learning, who want to learn how to leverage TensorFlow to simplify NLP tasks. Fundamental Python skills are assumed, as well as basic knowledge of machine learning and undergraduate-level calculus and linear algebra. No previous natural language processing experience required.
Table of contents
- Preface
- Introduction to Natural Language Processing
-
Understanding TensorFlow 2
- What is TensorFlow?
- Inputs, variables, outputs, and operations
- Keras: The model building API of TensorFlow
- Implementing our first neural network
- Summary
- Word2vec – Learning Word Embeddings
- Advanced Word Vector Algorithms
- Sentence Classification with Convolutional Neural Networks
- Recurrent Neural Networks
- Understanding Long Short-Term Memory Networks
- Applications of LSTM – Generating Text
-
Sequence-to-Sequence Learning – Neural Machine Translation
- Machine translation
- A brief historical tour of machine translation
- Understanding neural machine translation
- Preparing data for the NMT system
- Defining the model
- Training the NMT
- The BLEU score – evaluating the machine translation systems
- Visualizing Attention patterns
- Inference with NMT
- Other applications of Seq2Seq models – chatbots
- Summary
- Transformers
-
Image Captioning with Transformers
- Getting to know the data
- Downloading the data
- Processing and tokenizing data
- Defining a tf.data.Dataset
- The machine learning pipeline for image caption generation
- Implementing the model with TensorFlow
- Training the model
- Evaluating the results quantitatively
- Evaluating the model
- Captions generated for test images
- Summary
- Appendix A: Mathematical Foundations and Advanced TensorFlow
- Other Books You May Enjoy
- Index
Product information
- Title: Natural Language Processing with TensorFlow - Second Edition
- Author(s):
- Release date: July 2022
- Publisher(s): Packt Publishing
- ISBN: 9781838641351
You might also like
book
Deep Learning with TensorFlow 2 and Keras - Second Edition
Build machine and deep learning systems with the newly released TensorFlow 2 and Keras for the …
book
Advanced Natural Language Processing with TensorFlow 2
One-stop solution for NLP practitioners, ML developers, and data scientists to build effective NLP systems that …
book
Automated Deep Learning Using Neural Network Intelligence: Develop and Design PyTorch and TensorFlow Models Using Python
Optimize, develop, and design PyTorch and TensorFlow models for a specific problem using the Microsoft Neural …
book
Deep Learning for Natural Language Processing
Explore the most challenging issues of natural language processing, and learn how to solve them with …