Natural Language Processing with Python and spaCy will show you how to create NLP applications like chatbots, text-condensing scripts, and order-processing tools quickly and easily. You’ll learn how to leverage the spaCy library to extract meaning from text intelligently; how to determine the relationships between words in a sentence (syntactic dependency parsing); identify nouns, verbs, and other parts of speech (part-of-speech tagging); and sort proper nouns into categories like people, organizations, and locations (named entity recognizing). You’ll even learn how to transform statements into questions to keep a conversation going.
You’ll also learn how to:
• Work with word vectors to mathematically find words with similar meanings (Chapter 5)
• Identify patterns within data using spaCy’s built-in displaCy visualizer (Chapter 7)
• Automatically extract keywords from user input and store them in a relational database (Chapter 9)
• Deploy a chatbot app to interact with users over the internet (Chapter 11)
“Try This” sections in each chapter encourage you to practice what you’ve learned by expanding the book’s example scripts to handle a wider range of inputs, add error handling, and build professional-quality applications.
By the end of the book, you’ll be creating your own NLP applications with Python and spaCy.
From the Publisher
User experience level
Beginner
Beginner
Beginner to Intermediate
Intermediate
Intermediate
Intermediate
For readers who want
A fast-paced, thorough introduction to Python
A practical guide to using Python for automating tedious tasks
A quick and easy way to review Python fundamentals, vocabulary, syntax and more
Fun, entertaining projects to take your Python skills to the next level
A practical introduction to natural language processing with Python using spaCy
Expert practical advice and tutorials to perfect your professional Python skills
Compatible with Python version
Python 3
Python 3
Python 3
Python 3
Python 3
Python 2 & 3
Special features
Covers Django, matplotlib and plotly, and pygame
Covers working with files en masse, automating emails and texts, scraping the web, and more
Flash card format; includes exercises and challenges to test and hone your skills
Covers modules like pygame, Pylint, pydocstyle, tkinter, python-docx, matplotlib, and pillow
Create NLP applications like chatbots, text-condensing scripts, and order-processing tools
Covers powerful techniques like using generators, handling time zones, and applying functional programming
Page count
544 pages
592 pages
101 cards
424 pages
216 pages
240 pages
From the Author
More about this book
by author Yuli Vasiliev
We are entering an era when machines can be reached out with no programming code, but with natural language – in a way humans interact with each other. Natural Language Processing (NLP) is the technology that enables machines to make sense of a human language, recognize intent in user input, and then generate appropriate responses.
Natural language is natural to humans but not to machines. To keep up with their human counterparts, NLP-powered apps need to be good at syntax-driven sentence segmentation, part-of-speech tagging, labelled dependency parsing, and named entity recognition. Guiding you through common tasks and examples, this book demonstrates how to use these techniques with spaCy – a leading Python library for NLP – to understand and generate human language with code.
Interested in chatbot development? You’ll learn to make your bot:
Recognize the intent of natural language input
Produce appropriate responses
Understand the context of a discourse
Organize a natural conversation flow
Employ computer vision to ‘see’ what is in a submitted photo