--- id: azure-ai-textanalytics version: "5.4.0" license: MIT License license_treatment: permissive maintenance: active --- # azure-ai-textanalytics — Microsoft Azure Text Analytics Client Library for Python License: permissive · Maintenance: active · Downloads: 744.1K/mo ## What it is and what it does This package is the official Python client for Azure's cloud-hosted Natural Language Processing service. It wraps the Azure Cognitive Service for Language API, allowing you to submit text documents for analysis and retrieve structured results—sentiment scores, recognized entities, detected language, extracted key phrases, PII redaction, and text summaries. You authenticate with an API key or Azure Active Directory credential and instantiate a TextAnalyticsClient pointing to your Azure resource endpoint; then you call methods on batches of documents. The package is built on azure-core and depends on azure-common, isodate, and typing-extensions. It targets Python 3.8 and later and defaults to API version 2023-04-01, though you can select older versions (3.0, 3.1, 2022-05-01) for backward compatibility. The library is actively maintained, production-stable, and widely used; it carries no known vulnerabilities. Use it for: - Analyze customer feedback or reviews to extract sentiment scores and key topics at scale via cloud API. - Identify and redact personally identifiable information (PII) from documents before storage or sharing. - Extract named entities (people, organizations, locations) from unstructured text for data enrichment. - Detect the language of incoming user-generated content to route it to appropriate downstream processors. - Summarize long documents or support tickets automatically using extractive or abstractive summarization. - Build a multi-language content moderation pipeline by combining language detection with sentiment analysis. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Python bindings to Azure's cloud-based Natural Language Processing service for sentiment analysis, entity recognition, language detection, key phrase extraction, PII detection, and text summarization. Yes. This is a production-stable, actively maintained official Microsoft SDK with low install friction, permissive MIT licensing, no known vulnerabilities, and a large user base. Install it if you need to call Azure's NLP service from Python; it is the canonical way to do so. The only prerequisite is an Azure subscription and configured credentials. ## Install pip install azure-ai-textanalytics uv add azure-ai-textanalytics poetry add azure-ai-textanalytics ## Installing azure-ai-textanalytics Before you install: Low friction install with four stable runtime dependencies (azure-core, azure-common, isodate, typing-extensions). Actively maintained with recent releases; last commit 2026-08-14. Requires Python 3.8 or later. License in practice: MIT License permits commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely provided you include the license notice. Quickstart: pip install azure-ai-textanalytics from azure.core.credentials import AzureKeyCredential from azure.ai.textanalytics import TextAnalyticsClient client = TextAnalyticsClient( endpoint="https://.cognitiveservices.azure.com/", credential=AzureKeyCredential("") ) result = client.analyze_sentiment(["I love this product!"]) Requires an active Azure subscription and a Cognitive Services or Language service resource with endpoint and API key. Verify before relying: - Whether all 12 NLP features are available in the current stable API version 2023-04-01. - Performance characteristics and rate limits for batch processing of documents. - Whether regional endpoints support Azure Active Directory authentication or only custom subdomains. ## Package facts - License: MIT License (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 744.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags azure text analytics python, sentiment analysis nlp, named entity recognition, language detection api, key phrase extraction, pii detection, text summarization, nlp, cloud-api, azure-sdk [View on SkillFed](https://skillfed.io/packages/azure-ai-textanalytics) · [View on PyPI](https://pypi.org/project/azure-ai-textanalytics/)