Skip to main content

analyze_texts

Creates, updates, deletes, gets or lists an analyze_texts resource.

Overview

Nameanalyze_texts
TypeResource
Idazure.ai_content_safety.analyze_texts

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
analyze_textexecendpoint, textAnalyze Text. A synchronous API for the analysis of potentially harmful text content. Currently, it supports four categories: Hate, SelfHarm, Sexual, and Violence.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )

Lifecycle Methods

Analyze Text. A synchronous API for the analysis of potentially harmful text content. Currently, it supports four categories: Hate, SelfHarm, Sexual, and Violence.

EXEC azure.ai_content_safety.analyze_texts.analyze_text 
@endpoint='{{ endpoint }}' --required
@@json=
'{
"text": "{{ text }}",
"categories": "{{ categories }}",
"blocklistNames": "{{ blocklistNames }}",
"haltOnBlocklistHit": {{ haltOnBlocklistHit }},
"outputType": "{{ outputType }}"
}'
;