技能 Azure AI Text Analytics SDK for Python
📦

Azure AI Text Analytics SDK for Python

安全

使用 Azure AI Text Analytics 分析文本

此技能使 Claude 能够使用 Azure AI Text Analytics 执行 NLP 任务,包括情感分析、实体识别和 PII 检测。它提供了集成 Azure 语言处理功能的代码示例和最佳实践。

支持: Claude Codex Code(CC)
🥉 73 青铜
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“Azure AI Text Analytics SDK for Python”。 I had a wonderful trip to Seattle last week! The food was terrible and the service was slow.

预期结果:

文档 1:情感:正面(置信度:0.89)
文档 2:情感:负面(置信度:0.92)

意见挖掘:
- 'trip' -> 正面
- 'food' -> 负面
- 'service' -> 负面

正在使用“Azure AI Text Analytics SDK for Python”。 Microsoft was founded by Bill Gates and Paul Allen in Albuquerque.

预期结果:

实体:
- Microsoft(组织,置信度:0.95)
- Bill Gates(人物,置信度:0.98)
- Paul Allen(人物,置信度:0.97)
- Albuquerque(位置,置信度:0.91)

安全审计

安全
v1 • 2/24/2026

This is a prompt-only documentation skill providing guidance on using the Azure AI Text Analytics Python SDK. No executable code is present. Static analysis scanned 0 files (0 lines) and detected 0 potential security issues. The skill is purely documentation with code examples for an external SDK. No prompt injection attempts detected.

0
已扫描文件
0
分析行数
0
发现项
1
审计总数
未发现安全问题
审计者: claude

质量评分

38
架构
100
可维护性
87
内容
50
社区
100
安全
83
规范符合性

你能构建什么

客户反馈分析

分析客户评论和反馈以确定情感并提取关键主题,获取业务洞察。

文档处理管道

处理大量文档以自动提取实体、分类内容和检测语言。

合规性和数据保护

扫描文档中的敏感信息(如社会安全号、电子邮件和电话号码)以确保合规性。

试试这些提示

基本情感分析
Use the Azure AI Text Analytics skill to analyze the sentiment of these customer reviews: [insert reviews]. Show positive, negative, and neutral scores.
提取命名实体
Use the Azure AI Text Analytics skill to recognize entities in this text: [insert text]. List each entity with its category, subcategory, and confidence score.
检测敏感信息
Use the Azure AI Text Analytics skill to scan this document for PII: [insert document]. Show redacted text and list all PII entities found with their categories.
医疗文本分析
Use the Azure AI Text Analytics healthcare NLP feature to analyze this clinical note: [insert note]. Extract medical entities, their categories, and normalized forms.

最佳实践

  • 使用批处理操作在单个 API 调用中处理最多 10 个文档以提高效率
  • 分别处理文档级错误和成功结果以确保稳健处理
  • 在已知情况下明确指定语言以提高分析准确性并减少延迟

避免

  • 不要假设批处理中的所有文档都会成功 - 始终检查结果中的错误
  • 在没有正确配置 Azure 凭据和网络安全的情况下不要发送敏感数据
  • 不要忽略置信度评分 - 低分可能表明输入不明确或质量低

常见问题

使用此技能需要什么凭据?
您需要一个 Azure AI Language 资源,具有 API 密钥或 Entra ID 凭据。设置 AZURE_LANGUAGE_ENDPOINT 和 AZURE_LANGUAGE_KEY 环境变量。
我可以一次处理多少个文档?
Azure Text Analytics 每个请求最多支持 10 个文档。对于更大的批次,请将数据拆分为 10 个或更少的块。
什么是意见挖掘?
意见挖掘是一种基于方面的情感分析,用于识别文本中的特定目标(如'食物'或'服务')及其相关意见。
我可以将此技能用于医疗数据吗?
是的,医疗 NLP 功能支持分析临床笔记中的医疗实体,但需要在您的 Azure 订阅中启用 Healthcare API 功能。
有异步版本的客户端吗?
是的,使用 azure.ai.textanalytics.aio.TextAnalyticsClient 进行异步操作,建议用于高吞吐量场景。
PII 检测如何工作?
recognize_pii_entities 方法检测 SSN、电子邮件、电话等类别,并返回编辑了敏感数据的原始文本以及检测到的实体。

开发者详情

文件结构

📄 SKILL.md