Skill 2.2.1
Build a lightweight application that includes text analysis
Key Concepts
Azure Language in Foundry Tools provides prebuilt text analysis through one analyze-text operation on the Foundry resource. The request names the task kind, such as SentimentAnalysis, KeyPhraseExtraction, EntityRecognition, PiiEntityRecognition or LanguageDetection, and includes a list of documents, each with an ID, language and text. Results come back per document with labels, confidence scores, categories and character offsets. Summarization runs as an asynchronous job. Applications can call the REST API or a client library such as azure-ai-textanalytics, authenticating with Microsoft Entra ID.
A generative model can perform the same tasks from a prompt and can also produce custom labels, categories and summaries that no prebuilt feature offers. Defining a JSON schema with structured outputs makes the response consistent enough for code to parse. Choose Azure Language for standard, repeatable analysis with scores and offsets, and a generative model when the analysis is custom or open-ended; many applications combine both.