9

Algorithms for Natural Language Processing

Language is the most important instrument of thought.

—Marvin Minsky

This chapter introduces algorithms for natural language processing (NLP). It first introduces the fundamentals of NLP. Then it presents preparing data for NLP tasks. After that, it explains the concepts of vectorizing textual data. Next, we discuss word embeddings. Finally, we present a detailed use case.

This chapter is made up of the following sections:

  • Introducing NLP
  • Bag-of-words-based (BoW-based) NLP
  • Introduction to word embedding
  • Case study: Restaurant review sentiment analysis

By the end of this chapter, you will understand the basic techniques that are used for NLP. You should also understand how NLP can be used to solve ...

Get 50 Algorithms Every Programmer Should Know - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.