analyze_texts
Creates, updates, deletes, gets or lists an analyze_texts resource.
Overview
| Name | analyze_texts |
| Type | Resource |
| Id | azure.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
analyze_text | exec | endpoint, text | Analyze 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.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: ) |
Lifecycle Methods
- analyze_text
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 }}"
}'
;