Azure AI Text Analytics SDK for Python
使用 Azure AI Text Analytics 分析文本
此技能使 Claude 能够使用 Azure AI Text Analytics 执行 NLP 任务,包括情感分析、实体识别和 PII 检测。它提供了集成 Azure 语言处理功能的代码示例和最佳实践。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“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)
安全审计
安全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.
质量评分
你能构建什么
客户反馈分析
分析客户评论和反馈以确定情感并提取关键主题,获取业务洞察。
文档处理管道
处理大量文档以自动提取实体、分类内容和检测语言。
合规性和数据保护
扫描文档中的敏感信息(如社会安全号、电子邮件和电话号码)以确保合规性。
试试这些提示
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 凭据和网络安全的情况下不要发送敏感数据
- 不要忽略置信度评分 - 低分可能表明输入不明确或质量低