Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Python Natural Language Processing Cookbook
Python Natural Language Processing Cookbook

Python Natural Language Processing Cookbook: Over 50 recipes to understand, analyze, and generate text for implementing language processing tasks

eBook
€28.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Python Natural Language Processing Cookbook

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Analyze varying complexities of text using popular Python packages such as NLTK, spaCy, sklearn, and gensim
  • Implement common and not-so-common linguistic processing tasks using Python libraries
  • Overcome the common challenges faced while implementing NLP pipelines

Description

Python is the most widely used language for natural language processing (NLP) thanks to its extensive tools and libraries for analyzing text and extracting computer-usable data. This book will take you through a range of techniques for text processing, from basics such as parsing the parts of speech to complex topics such as topic modeling, text classification, and visualization. Starting with an overview of NLP, the book presents recipes for dividing text into sentences, stemming and lemmatization, removing stopwords, and parts of speech tagging to help you to prepare your data. You’ll then learn ways of extracting and representing grammatical information, such as dependency parsing and anaphora resolution, discover different ways of representing the semantics using bag-of-words, TF-IDF, word embeddings, and BERT, and develop skills for text classification using keywords, SVMs, LSTMs, and other techniques. As you advance, you’ll also see how to extract information from text, implement unsupervised and supervised techniques for topic modeling, and perform topic modeling of short texts, such as tweets. Additionally, the book shows you how to develop chatbots using NLTK and Rasa and visualize text data. By the end of this NLP book, you’ll have developed the skills to use a powerful set of tools for text processing.

Who is this book for?

This book is for data scientists and professionals who want to learn how to work with text. Intermediate knowledge of Python will help you to make the most out of this book. If you are an NLP practitioner, this book will serve as a code reference when working on your projects.

What you will learn

  • Become well-versed with basic and advanced NLP techniques in Python
  • Represent grammatical information in text using spaCy, and semantic information using bag-of-words, TF-IDF, and word embeddings
  • Perform text classification using different methods, including SVMs and LSTMs
  • Explore different techniques for topic modeling such as K-means, LDA, NMF, and BERT
  • Work with visualization techniques such as NER and word clouds for different NLP tools
  • Build a basic chatbot using NLTK and Rasa
  • Extract information from text using regular expression techniques and statistical and deep learning tools

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 19, 2021
Length: 284 pages
Edition : 1st
Language : English
ISBN-13 : 9781838987787
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Mar 19, 2021
Length: 284 pages
Edition : 1st
Language : English
ISBN-13 : 9781838987787
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 142.97
Transformers for Natural Language Processing
€67.99
Python Natural Language Processing Cookbook
€41.99
Advanced Natural Language Processing with TensorFlow 2
€32.99
Total 142.97 Stars icon

Table of Contents

9 Chapters
Chapter 1: Learning NLP Basics Chevron down icon Chevron up icon
Chapter 2: Playing with Grammar Chevron down icon Chevron up icon
Chapter 3: Representing Text – Capturing Semantics Chevron down icon Chevron up icon
Chapter 4: Classifying Texts Chevron down icon Chevron up icon
Chapter 5: Getting Started with Information Extraction Chevron down icon Chevron up icon
Chapter 6: Topic Modeling Chevron down icon Chevron up icon
Chapter 7: Building Chatbots Chevron down icon Chevron up icon
Chapter 8: Visualizing Text Data Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4
(18 Ratings)
5 star 72.2%
4 star 16.7%
3 star 0%
2 star 5.6%
1 star 5.6%
Filter icon Filter
Top Reviews

Filter reviews by




IG May 25, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Among other programming "cookbooks" I thought this one to be the best. In contrast to other NLP books, this one reads easily and has clear examples.I learned lots of new things, e.g., I discovered NMF topic modeling for the first time.Chapters about Rasa and SVM turned out to be very useful. I was never interested in chatbots, but decided to write one (a simple ToDo system), and the book helped to figure it out. Also, the graphs are cool, I never knew it was possible to visualize text this way.For those whose code doesn't run because they loaded package versions that don't match the book, the book github repository will load the package version that matches the book.
Amazon Verified review Amazon
Alsida D. Jul 26, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Really a nice read for whoever is using Python in their daily work and started with NLP text processing analyses. The book explains details and code examples from the NLP basics such as parsing parts of speech to advanced topics like information extraction and developing chatbots using state-of-art platforms/libraries from NLTK and Rasa . The source code of all the examples is available in github and I suggest that you follow them as you are reading. A typical learn by doing book I would say :)
Amazon Verified review Amazon
Steve-3PO Dec 15, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Zhenya Antić's Python NLP Cookbook is a great resource for jumpstarting any NLP project. I worked as a graduate TA for introductory and advanced NLP courses at my university. I would recommend this book to anyone working on an NLP project, from beginning students taking an introductory NLP course to the seasoned computational linguist.
Amazon Verified review Amazon
Josip Sep 23, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book is a practical introduction to tasks commonly used in NLP, covering multiple topics, ranging from classical NLP methods like tokenization, POS tagging, stemming, lemmatization and stop word removal, to syntactic analysis including dependency parsing, entity and relation extraction and anaphora resolution, over semantics from simple bag-of-words representations over neural word embeddings and state-of-the-art, transformer-based text document representation, to applications like text clustering and topic modelling, text classification, information extraction using topic models, to building chatbots and visualization of text data.The main advantage of this book is the hands-on approach. Each of the chapters has the same structure ("Getting ready", "How to do it...", "How it works...", "There's more...", "See also"). "How to do it..." sections are accompanied by the Python code that demonstrates the concept introduced in the chapter, while the "How it works..." section explains the idea behind the code. Each part of code is explained, which is very handy for learn-by-doing oriented students.The book is primarily aimed as an intro to the applied NLP, so researchers or practitioners with more experience won't get a lot out of it. Each task description is quite short, so it would go well with a book that covers a more holistic approach that describes in more depth why a specific task is performed and what is its role in a bigger NLP system.
Amazon Verified review Amazon
Dmitry Jul 26, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Recently, I went through ML and Deep Learning courses that have left me with a feeling that I understand how typical NLP models work from the inside, but without a feeling that I can just go and implement a basic chat bot or semantic search for a website.This is where this cookbook was so helpful. The book gives simple recipes of a basic chatbot, an embeddings model, named entity recognition model and many more. Each recipe comes with an explanation of how it works and lets you get to a simple working solution quickly(most of the recipes took me 10 to 30 minutes). After a simple solution is ready you can continue experimentation on your own.The book uses nltk, keras, tensorflow, pytorch, transformers, huggingface, rasa, spacy, and other modern and mature nlp frameworks. Although in the future I can imagine how some of these will become less relevant, right now these frameworks are very popular and I see them used in production solutions.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.