AnalyzeTextOptions Class

Definition

The text analysis request.

public class AnalyzeTextOptions
type AnalyzeTextOptions = class
Public Class AnalyzeTextOptions
Inheritance
AnalyzeTextOptions

Constructors

AnalyzeTextOptions(String)

Initializes a new instance of AnalyzeTextOptions.

Properties

BlocklistNames

The names of blocklists.

BreakByBlocklists

When set to true, further analyses of harmful content will not be performed in cases where blocklists are hit. When set to false, all analyses of harmful content will be performed, whether or not blocklists are hit.

Categories

The categories will be analyzed. If they are not assigned, a default set of analysis results for the categories will be returned.

HaltOnBlocklistHit

When set to true, further analyses of harmful content will not be performed in cases where blocklists are hit. When set to false, all analyses of harmful content will be performed, whether or not blocklists are hit.

OutputType

This refers to the type of text analysis output. If no value is assigned, the default value will be "FourSeverityLevels".

Text

The text needs to be analyzed. We support a maximum of 10k Unicode characters (Unicode code points) in the text of one request.

Applies to