本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
敏感数据检测和编辑样本输出
以下示例显示了标准输出的敏感数据检测和编辑摘录。有关完整的响应格式,请参阅 API 参考InvokeDataAutomationAsync中的。
文档
以下示例显示了文档中经过编辑的标准输出。
{ "id": "5e9cc636-73be-4264-9284-e178da9d094a", "text": "- Full Name: [PII]", "confidence": 0.0099853515625, "reading_order": 2, "page_index": 0, "locations": [ { "page_index": 0, "bounding_box": { "left": 0.08195127630357191, "top": 0.11714535522460938, "width": 0.28159839146295634, "height": 0.012292622884114576 } } ] }, { "id": "b84ee8f7-6081-45ff-a5a6-da61db7928a5", "text": "- Social Security Number: [PII]", "confidence": 0.0099853515625, "reading_order": 3, "page_index": 0, "locations": [ { "page_index": 0, "bounding_box": { "left": 0.08195658199122695, "top": 0.13631119791666665, "width": 0.33843516892045605, "height": 0.015145751953125008 } } ] },
音频
以下示例显示了密文前的标准输出,并标识了检测到的实体。
"audio_segments": [{ "start_timestamp_millis": 133190, "end_timestamp_millis": 136410, "segment_index": 7, "type": "TRANSCRIPT", "text": "Hi, my name is Mary Major.", "audio_item_indices": [389, 390, 391, 392, 393, 394, 395, 396], "language": "EN", "sensitive_data_detection": [{ "index": 0, "entity_type": "NAME", "content": "Mary Major", "audio_item_indices": [394, 395], "start_timestamp_millis": 135540, "end_timestamp_millis": 136380, "start_character_offset": 15, "end_character_offset": 25 }] }]
以下示例显示了密文后的相同标准输出。
"audio_segments": [{ "start_timestamp_millis": 133190, "end_timestamp_millis": 136410, "segment_index": 7, "type": "TRANSCRIPT", "text": "Hi, my name is [NAME].", "audio_item_indices": [389, 390, 391, 392, 393, 394, 395, 396], "language": "EN", "sensitive_data_detection": [{ "index": 0, "entity_type": "NAME", "content": "[NAME]", "audio_item_indices": [394, 395], "start_timestamp_millis": 135540, "end_timestamp_millis": 136380, "start_character_offset": 15, "end_character_offset": 21 }] }]
Image
以下示例显示了图像的经过编辑的标准输出。
"image": { "summary": "This image shows an illustration of two individuals engaged in a conversation. [NAME], wearing an orange shirt, is gesturing with her hand while speaking. [NAME], dressed in a blue shirt, is listening to her.", "sensitive_data_detection": { "image": { "summary": [{ "id": 0, "sensitive_data_type": "PII", "entity_type": "NAME", "content": "[NAME]", "start_character_offset": 79, "end_character_offset": 85 }, { "id": 1, "sensitive_data_type": "PII", "entity_type": "NAME", "content": "[NAME]", "start_character_offset": 155, "end_character_offset": 161 }], "text_words": [], "text_lines": [] } } }
以下示例显示了对自定义输出的敏感数据检测和修改。
自定义输出
以下示例显示了密文前的自定义输出,并标识了检测到的实体。
"blueprint_sensitive_data_detection": { "call_summary": { "value": "This is a podcast episode featuring Mary Major and John Stiles discussing various topics including Turkish soap operas, childhood lies, and John's career. No specific caller-agent interaction is present.", "sensitive_data_detection": [{ "index": 0, "entity_type": "NAME", "content": "Mary Major", "start_character_offset": 36, "end_character_offset": 46 }, { "index": 1, "entity_type": "NAME", "content": "John Stiles", "start_character_offset": 51, "end_character_offset": 62 }, { "index": 2, "entity_type": "NAME", "content": "John", "start_character_offset": 140, "end_character_offset": 144 }] } }
以下示例显示了密文后的相同自定义输出。
"blueprint_sensitive_data_detection": { "call_summary": { "value": "This is a podcast episode featuring [NAME] and [NAME] discussing various topics including Turkish soap operas, childhood lies, and [NAME]'s career. No specific caller-agent interaction is present.", "sensitive_data_detection": [{ "index": 0, "entity_type": "NAME", "content": "[NAME]", "start_character_offset": 36, "end_character_offset": 42 }, { "index": 1, "entity_type": "NAME", "content": "[NAME]", "start_character_offset": 47, "end_character_offset": 53 }, { "index": 2, "entity_type": "NAME", "content": "[NAME]", "start_character_offset": 131, "end_character_offset": 137 }] } }