liveBook · Manning

Natural language processing

As explained in Coding with AI

Natural language processing is the computational analysis and generation of human language, including interpreting text and producing meaningful language-related outputs.

Natural language processing (NLP) combines linguistics, computer science, and artificial intelligence to help computers understand, interpret, and generate human language. Systems process text, identify patterns, and produce meaningful outputs. section 2.4

NLP supports tasks such as:

  • Sentiment analysis, machine translation, and text summarization. section 2.4
  • Tokenization, which breaks text into words, punctuation, or phrases that systems can process and analyze. section 2.4
  • Pattern analysis involving word frequency, word types, word co-occurrence, and text classification for tasks such as spam detection. section 2.4

A small NLP project

A document-analysis application can use NLP to analyze and count words. Tokenizing the document creates processable chunks, while frequency analysis shows which words occur most or least often. Chatbots and virtual assistants apply related language-processing capabilities to understand requests and produce human-like text. section 2.3 section 2.4

Figure 2.11 Word-based tokenization breaks whole words and punctuation into chunks that can be processed and analyzed.

Word-based tokenization divides whole words and punctuation into identifiable chunks for processing and analysis. section 2.4

How Coding with AI covers it

How deep it goes
Defines tokenization and several text patterns, but deliberately remains a high-level overview rather than a deep treatment.
Examples
Uses virtual assistants, chatbots, document word counting, tokenized text, and classification tasks such as spam detection.
What you can do after
Build a simple document analyzer that tokenizes text and counts word occurrences.
How it connects
Connects linguistics, computer science, artificial intelligence, tokenization, text classification, sentiment analysis, and generative AI.

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 Coding with AI. The section links point to the parts of the book it draws on.