Azure pii最小推杆过滤器

发布于 2025-01-28 14:51:35 字数 417 浏览 4 评论 0原文

我试图通过最低精度过滤结果,以排除使用Python和Azures PII认知服务过于置信度太低的PII名称(.5)。

response=client.recognize_pii_entities(documents,language="en",categories_filter=['Person'], minimumPrecision=[.8])

关键字参数

request()获得了“ MINIMUMPRECISION” categories_filterpiicategories不同的 Azure文档说要使用,这是功能参数,因此我想知道最小值是否也应该是不同的,但我在文档中找不到它。

I am trying to filter results by minimum precision to exclude any PII names that are too low in confidence (.5) using python and Azures PII cognitive service.

response=client.recognize_pii_entities(documents,language="en",categories_filter=['Person'], minimumPrecision=[.8])

the request() gets an unexpected key word argument for "minimumPrecision"

categories_filter was different from the piiCategories that the azure documentation says to use and that is the functional parameter so I am wondering if minimumPrecision is also actually supposed to be different, but I cannot find it in the docs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神魇的王 2025-02-04 14:51:35

客户端库不支持Minimum Precision参数。 REST API也不是。您可以共享显示此参数使用的Azure文档吗?

对于相同的效果,您应该能够在profors_score上过滤实体结果:

response = client.recognize_pii_entities(documents, language="en", categories_filter=['Person'])
results = [entity for entity in res.entities for res in result if entity.confidence_score > 0.8]

The client library does not support a minimumPrecision parameter. The REST API does not either. Can you share the Azure documentation which shows usage of this parameter?

You should be able to filter the entity results on the confidence_score for the same effect:

response = client.recognize_pii_entities(documents, language="en", categories_filter=['Person'])
results = [entity for entity in res.entities for res in result if entity.confidence_score > 0.8]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文