liveBook · Manning

Natural language processing

As explained in Microsoft Azure in Action

Natural language processing is a branch of artificial intelligence that enables computers to understand, interpret, and generate human language.

Natural language processing (NLP) lets computers understand, interpret, and respond to human language. It is useful when an application needs to work with what customers write: a support chatbot can answer questions, while a bookshop can make sense of reviews instead of reading each one by hand. Here, NLP concerns text; speech processing is a separate task. section 7.0 section 7.1

For a bookshop, NLP can turn customer language into useful features:

  • Recommend books based on reviews and stated preferences. section 7.1
  • Summarize new arrivals to help customers discover titles. section 7.1
  • Analyze feedback for sentiment to better understand customer opinions. section 7.1

Azure OpenAI Service provides large language models for generating text. Match the model to the job: a small, quick model suits short recommendations, while a larger one may produce a more detailed summary at greater time and cost. Models can only view a limited amount of text at once, so long inputs may need summarization, chunking, or retrieval. Test speed, cost, and quality before production use. section 7.1

C:/> PROMPT="Customer Review: \"I absolutely loved '1984' by George Orwell. 
The dystopian setting and the commentary on society were fascinating. 
I'm looking for more books like this.\"

      Based on this review, recommend three books that the customer might
 enjoy, along with a brief description of each." 

This prompt pairs a customer's review with a specific request: recommend three books and briefly describe each. It shows how a review can become input to a recommendation feature. section 7.1

An Azure CLI example creates an Azure OpenAI account, deploys a model, and sends a prompt to its endpoint. That setup is only the start: a useful application still needs an appropriate model and input strategy. section 7.1

How Microsoft Azure in Action covers it

How deep it goes
Defines NLP and outlines model-selection and input-length trade-offs, without explaining NLP algorithms.
Examples
Uses a customer review requesting three similar books and Azure CLI examples for model deployment and prompting.
What it assumes
Introduces NLP from its definition; Azure CLI examples assume familiarity with commands, resource groups, and endpoints.
What you can do after
Apply it via Azure OpenAI Service to prototype recommendations while testing model speed, cost, and quality.
How it connects
Connects NLP to large language models, sentiment analysis, summarization, retrieval, and customer-service chatbots.

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 Microsoft Azure in Action. The section links point to the parts of the book it draws on.