View a markdown version of this page

Saídas de amostra de detecção e redação de dados confidenciais - Amazon Bedrock

As traduções são geradas por tradução automática. Em caso de conflito entre o conteúdo da tradução e da versão original em inglês, a versão em inglês prevalecerá.

Saídas de amostra de detecção e redação de dados confidenciais

Os exemplos a seguir mostram trechos de detecção e redação de dados confidenciais para saídas padrão. Para obter o formato completo da resposta, consulte InvokeDataAutomationAsynca Referência da API.

Documento

O exemplo a seguir mostra a saída padrão redigida de um documento.

{ "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 } } ] },

Áudio

O exemplo a seguir mostra a saída padrão antes da redação, com a entidade detectada identificada.

"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 }] }]

O exemplo a seguir mostra a mesma saída padrão após a redação.

"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 }] }]

Imagem

O exemplo a seguir mostra a saída padrão redigida de uma imagem.

"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": [] } } }

Os exemplos a seguir mostram a detecção e a redação de dados confidenciais para saídas personalizadas.

Saída personalizada

O exemplo a seguir mostra a saída personalizada antes da redação, com as entidades detectadas identificadas.

"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 }] } }

O exemplo a seguir mostra a mesma saída personalizada após a redação.

"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 }] } }