liveBook · Manning

Natural language processing

As explained in Build AI-Enhanced Web Apps

Natural language processing is the computational processing and understanding of human language in text or speech.

Natural language processing gives web applications a way to process and understand human language in text or speech. A React and Node.js application can access pretrained models through OpenAI’s REST APIs instead of building a model from scratch. section 2.2.2

Transformer-based processing uses self-attention to evaluate relationships among words and preserve context across a sequence. This lets a model resolve references such as “it” meaning “the antelope” and generate contextually relevant continuations rather than merely grammatical ones. section 1.5

A conversational web application

Astra AI combines a React interface, Node.js backend, Tailwind CSS, Vite, OpenAI REST APIs, ephemeral conversation storage, input validation, sanitization, informative error handling, and Vitest unit tests. Its interface supports follow-up questions and scrollable conversation history. section 2.2.2

Figure 1.5 AI can be used to detect whether a picture of a cat is, in fact, a cat. It accepts an image as input and responds with yes or no (or 0 and 1).
A diagram of a cat detector

AI-generated content may be incorrect.

Contrasts language processing with another AI capability by showing a model that accepts an image and returns a binary classification. section 1.5

How Build AI-Enhanced Web Apps covers it

How deep it goes
Explains transformer context and self-attention, then stops short of model training or mathematical treatment.
Examples
Uses Astra AI, follow-up questions, conversational history, pronoun resolution, and the “green eggs and …” completion.
What it assumes
Introduces the application tools without assuming prior familiarity, while relying on basic web-application development context.
What you can do after
Build conversational language features with React, Node.js, Vite, and OpenAI REST APIs.
How it connects
Connects natural language processing with transformers, self-attention, generative AI, conversational interfaces, and pretrained models.

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 Build AI-Enhanced Web Apps. The section links point to the parts of the book it draws on.