liveBook · Manning

Natural language processing

As explained in Deep Learning with Python, Third Edition

The field of using computers to interpret, analyze, or generate human language, especially written text.

Natural language processing (NLP) uses computers to interpret, analyze, manipulate, or generate human language, especially written text. It matters because text carries much of human communication, knowledge, and cultural production, yet natural language is ambiguous, inconsistent, and constantly changing. section 14.1

From text to a classifier

A practical NLP workflow begins by preprocessing text into numeric input, then building a simple text classifier. This foundation supports more complicated models, including Transformers. The same challenge appears in early machine translation: an IBM and Georgetown system used six hardcoded grammar rules and a lookup table of a few hundred words and suffixes to translate 60 selected Russian sentences accurately. The demonstration worked on its narrow examples, but generalizing beyond them proved difficult because word meanings depend on context and grammar needs countless exceptions. section 14.0 section 14.1

Useful rules of thumb:

  • Treat natural language as messy data rather than a fixed formal language. section 14.1
  • Expect a system that succeeds on handpicked examples to require substantially more work before it generalizes robustly. section 14.1
  • Start with numeric preprocessing and simple text classification before moving toward more complicated models. section 14.0

How Deep Learning with Python, Third Edition covers it

How deep it goes
Defines the field, surveys early rule-based translation, and stops short of detailed classifier or Transformer internals.
Examples
Uses numeric text preprocessing, simple classifiers, and an early Russian-to-English system evaluated on 60 handpicked sentences.
What you can do after
Build a simple text classifier after converting text input into numeric representations.
How it connects
Connects natural language processing with text classification, machine translation, grammar, preprocessing, and Transformers.

Also explained in

Compare how 15 books explain natural language processing →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with Python, Third Edition. The section links point to the parts of the book it draws on.