Book description
Natural Language Processing in Action is your guide to creating machines that understand human language using the power of Python with its ecosystem of packages dedicated to NLP and AI.
About the Technology
Recent advances in deep learning empower applications to understand text and speech with extreme accuracy. The result? Chatbots that can imitate real people, meaningful resume-to-job matches, superb predictive search, and automatically generated document summaries—all at a low cost. New techniques, along with accessible tools like Keras and TensorFlow, make professional-quality NLP easier than ever before.
About the Book
Natural Language Processing in Action is your guide to building machines that can read and interpret human language. In it, you’ll use readily available Python packages to capture the meaning in text and react accordingly. The book expands traditional NLP approaches to include neural networks, modern deep learning algorithms, and generative techniques as you tackle real-world problems like extracting dates and names, composing text, and answering free-form questions.
What's Inside
- Some sentences in this book were written by NLP! Can you guess which ones?
- Working with Keras, TensorFlow, gensim, and scikit-learn
- Rule-based and data-based NLP
- Scalable pipelines
About the Reader
This book requires a basic understanding of deep learning and intermediate Python skills.
About the Authors
Hobson Lane, Cole Howard, and Hannes Max Hapke are experienced NLP engineers who use these techniques in production.
Quotes
Learn both the theory and practical skills needed to go beyond merely understanding the inner workings of NLP, and start creating your own algorithms or models.
- From the Foreword by Dr. Arwen Griffioen, Zendesk
Provides a great overview of current NLP tools in Python. I’ll definitely be keeping this book on hand for my own NLP work. Highly recommended!
- Tony Mullen, Northeastern University–Seattle
An intuitive guide to get you started with NLP. The book is full of programming examples that help you learn in a very pragmatic way.
- Tommaso Teofili, Adobe Systems
Publisher resources
Table of contents
- Inside front cover
- Natural Language Processing in Action
- Copyright
- Brief Table of Contents
- Table of Contents
- Front matter
- Part 1. Wordy machines
- 1 Packets of thought (NLP overview)
- 2 Build your vocabulary (word tokenization)
- 3 Math with words (TF-IDF vectors)
- 4 Finding meaning in word counts (semantic analysis)
- Part 2. Deeper learning (neural networks)
- 5 Baby steps with neural networks (perceptrons and backpropagation)
-
6 Reasoning with word vectors (Word2vec)
- 6.1 Semantic queries and analogies
-
6.2 Word vectors
- 6.2.1 Vector-oriented reasoning
- 6.2.2 How to compute Word2vec representations
- 6.2.3 How to use the gensim.word2vec module
- 6.2.4 How to generate your own word vector representations
- 6.2.5 Word2vec vs. GloVe (Global Vectors)
- 6.2.6 fastText
- 6.2.7 Word2vec vs. LSA
- 6.2.8 Visualizing word relationships
- 6.2.9 Unnatural words
- 6.2.10 Document similarity with Doc2vec
- Summary
- 7 Getting words in order with convolutional neural networks (CNNs)
- 8 Loopy (recurrent) neural networks (RNNs)
-
9 Improving retention with long short-term memory networks
-
9.1 LSTM
- 9.1.1 Backpropagation through time
- 9.1.2 Where does the rubber hit the road?
- 9.1.3 Dirty data
- 9.1.4 Back to the dirty data
- 9.1.5 Words are hard. Letters are easier.
- 9.1.6 My turn to chat
- 9.1.7 My turn to speak more clearly
- 9.1.8 Learned how to say, but not yet what
- 9.1.9 Other kinds of memory
- 9.1.10 Going deeper
- Summary
-
9.1 LSTM
-
10 Sequence-to-sequence models and attention
- 10.1 Encoder-decoder architecture
- 10.2 Assembling a sequence-to-sequence pipeline
- 10.3 Training the sequence-to-sequence network
-
10.4 Building a chatbot using sequence-to-sequence networks
- 10.4.1 Preparing the corpus for your training
- 10.4.2 Building your character dictionary
- 10.4.3 Generate one-hot encoded training sets
- 10.4.4 Train your sequence-to-sequence chatbot
- 10.4.5 Assemble the model for sequence generation
- 10.4.6 Predicting a sequence
- 10.4.7 Generating a response
- 10.4.8 Converse with your chatbot
- 10.5 Enhancements
- 10.6 In the real world
- Summary
- Part 3. Getting real (real-world NLP challenges)
- 11 Information extraction (named entity extraction and question answering)
- 12 Getting chatty (dialog engines)
- 13 Scaling up (optimization, parallelization, and batch processing)
- Appendix A. Your NLP tools
- Appendix B. Playful Python and regular expressions
- Appendix C. Vectors and matrices (linear algebra fundamentals)
- Appendix D. Machine learning tools and techniques
- Appendix E. Setting up your AWS GPU
- Appendix F. Locality sensitive hashing
- Resources
- Glossary
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Natural Language Processing in Action
- Author(s):
- Release date: April 2019
- Publisher(s): Manning Publications
- ISBN: 9781617294631
You might also like
book
Real-World Natural Language Processing
In Real-world Natural Language Processing you will learn how to: Design, develop, and deploy useful NLP …
book
Natural Language Processing with PyTorch
Natural Language Processing (NLP) provides boundless opportunities for solving problems in artificial intelligence, making products such …
book
Getting Started with Natural Language Processing
Hit the ground running with this in-depth introduction to the NLP skills and techniques that allow …
book
Practical Natural Language Processing
Many books and courses tackle natural language processing (NLP) problems with toy use cases and well-defined …