Uses of Class
com.azure.ai.contentsafety.models.AnalyzeTextOptions
Packages that use AnalyzeTextOptions
Package
Description
Package containing the classes for ContentSafety.
Package containing the data models for ContentSafety.
-
Uses of AnalyzeTextOptions in com.azure.ai.contentsafety
Methods in com.azure.ai.contentsafety with parameters of type AnalyzeTextOptionsModifier and TypeMethodDescriptionContentSafetyAsyncClient.analyzeText(AnalyzeTextOptions options) Analyze Text A synchronous API for the analysis of potentially harmful text content.ContentSafetyClient.analyzeText(AnalyzeTextOptions options) Analyze Text A synchronous API for the analysis of potentially harmful text content. -
Uses of AnalyzeTextOptions in com.azure.ai.contentsafety.models
Methods in com.azure.ai.contentsafety.models that return AnalyzeTextOptionsModifier and TypeMethodDescriptionAnalyzeTextOptions.setBlocklistNames(List<String> blocklistNames) Set the blocklistNames property: The names of blocklists.AnalyzeTextOptions.setCategories(List<TextCategory> categories) Set the categories property: The categories will be analyzed.AnalyzeTextOptions.setHaltOnBlocklistHit(Boolean haltOnBlocklistHit) Set the haltOnBlocklistHit property: When set to true, further analyses of harmful content will not be performed in cases where blocklists are hit.AnalyzeTextOptions.setOutputType(AnalyzeTextOutputType outputType) Set the outputType property: This refers to the type of text analysis output.