TextModeration class

Klasse, die eine TextModeration darstellt.

Konstruktoren

TextModeration(ContentModeratorClientContext)

Erstellen Sie eine TextModeration.

Details zum Konstruktor

TextModeration(ContentModeratorClientContext)

Erstellen Sie eine TextModeration.

new TextModeration(client: ContentModeratorClientContext)

Parameter

client
ContentModeratorClientContext

Verweisen auf den Dienstclient.

Details zur Methode

detectLanguage(TextContentType1, HttpRequestBody, RequestOptionsBase)

Dieser Vorgang erkennt die Sprache des angegebenen Eingabeinhalts. Gibt den ISO 639-3-Code für die vorherrschende Sprache zurück, die den übermittelten Text umfasst. Es werden mehr als 110 Sprachen unterstützt.

function detectLanguage(textContentType: TextContentType1, textContent: HttpRequestBody, options?: RequestOptionsBase): Promise<TextModerationDetectLanguageResponse>

Parameter

textContentType
TextContentType1

Der Inhaltstyp. Mögliche Werte sind: "text/plain", "text/html", "text/xml", "text/markdown"

textContent
HttpRequestBody

Inhalt, der angezeigt werden soll.

options
RequestOptionsBase

Die optionalen Parameter

Gibt zurück

Promise-Modelle.TextModerationDetectLanguageResponse<>

detectLanguage(TextContentType1, HttpRequestBody, RequestOptionsBase, ServiceCallback<DetectedLanguage>)

function detectLanguage(textContentType: TextContentType1, textContent: HttpRequestBody, options: RequestOptionsBase, callback: ServiceCallback<DetectedLanguage>)

Parameter

textContentType
TextContentType1

Der Inhaltstyp. Mögliche Werte sind: "text/plain", "text/html", "text/xml", "text/markdown"

textContent
HttpRequestBody

Inhalt, der angezeigt werden soll.

options
RequestOptionsBase

Die optionalen Parameter

callback

ServiceCallback<DetectedLanguage>

Der Rückruf

detectLanguage(TextContentType1, HttpRequestBody, ServiceCallback<DetectedLanguage>)

function detectLanguage(textContentType: TextContentType1, textContent: HttpRequestBody, callback: ServiceCallback<DetectedLanguage>)

Parameter

textContentType
TextContentType1

Der Inhaltstyp. Mögliche Werte sind: "text/plain", "text/html", "text/xml", "text/markdown"

textContent
HttpRequestBody

Inhalt, der angezeigt werden soll.

callback

ServiceCallback<DetectedLanguage>

Der Rückruf

screenText(TextContentType, HttpRequestBody, ServiceCallback<Screen>)

function screenText(textContentType: TextContentType, textContent: HttpRequestBody, callback: ServiceCallback<Screen>)

Parameter

textContentType
TextContentType

Der Inhaltstyp. Mögliche Werte sind: "text/plain", "text/html", "text/xml", "text/markdown"

textContent
HttpRequestBody

Inhalt, der angezeigt werden soll.

callback

ServiceCallback<Screen>

Der Rückruf

screenText(TextContentType, HttpRequestBody, TextModerationScreenTextOptionalParams)

Erkennt Profanität in mehr als 100 Sprachen und Vergleich mit benutzerdefinierten und freigegebenen Blacklists.

function screenText(textContentType: TextContentType, textContent: HttpRequestBody, options?: TextModerationScreenTextOptionalParams): Promise<TextModerationScreenTextResponse>

Parameter

textContentType
TextContentType

Der Inhaltstyp. Mögliche Werte sind: "text/plain", "text/html", "text/xml", "text/markdown"

textContent
HttpRequestBody

Inhalt, der angezeigt werden soll.

options
TextModerationScreenTextOptionalParams

Die optionalen Parameter

Gibt zurück

Promise<Models.TextModerationScreenTextResponse>

screenText(TextContentType, HttpRequestBody, TextModerationScreenTextOptionalParams, ServiceCallback<Screen>)

function screenText(textContentType: TextContentType, textContent: HttpRequestBody, options: TextModerationScreenTextOptionalParams, callback: ServiceCallback<Screen>)

Parameter

textContentType
TextContentType

Der Inhaltstyp. Mögliche Werte sind: "text/plain", "text/html", "text/xml", "text/markdown"

textContent
HttpRequestBody

Inhalt, der angezeigt werden soll.

options
TextModerationScreenTextOptionalParams

Die optionalen Parameter

callback

ServiceCallback<Screen>

Der Rückruf