question

JorisPoelmans-1109 avatar image
0 Votes"
JorisPoelmans-1109 asked RamyaChowdaryBandla-0610 answered

How to pass PII categories in Azure Cognitive Services Entities Recognition PII

I am currently trying out the new Cognitive Services API which allows you to identify PII entities - https://docs.microsoft.com/en-us/rest/api/cognitiveservices-textanalytics/3.1preview4/entities-recognition-pii/entities-recognition-pii . Unfortunately I can't seem to get the optional filter with piicategories to work. Does anyone have a working example of this?

Kind regards,

Joris
[https://jopx.blogspot.com]

azure-cognitive-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GiftA-MSFT avatar image
0 Votes"
GiftA-MSFT answered

Hi, here's an example using PERSON category:

 url = {Endpoint}/text/analytics/v3.1-preview.4/entities/recognition/pii?piiCategories=person

102632-image.png




image.png (21.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RamyaChowdaryBandla-0610 avatar image
0 Votes"
RamyaChowdaryBandla-0610 answered

@GiftA-MSFT
Can you please share sample in C#
Where we pass the string to PII and get the masked output

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.