TextModeration class

Klasse die een TextModeration vertegenwoordigt.

Constructors

TextModeration(ContentModeratorClientContext)

Een tekstmoderatie maken.

Constructordetails

TextModeration(ContentModeratorClientContext)

Een tekstmoderatie maken.

new TextModeration(client: ContentModeratorClientContext)

Parameters

client
ContentModeratorClientContext

Verwijzing naar de serviceclient.

Methodedetails

detectLanguage(TextContentType1, HttpRequestBody, RequestOptionsBase)

Met deze bewerking wordt de taal van de opgegeven invoerinhoud gedetecteerd. Retourneert de ISO 639-3-code voor de overheersende taal die bestaat uit de ingediende tekst. Er worden meer dan 110 talen ondersteund.

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

Parameters

textContentType
TextContentType1

Het inhoudstype. Mogelijke waarden zijn: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Inhoud naar scherm.

options
RequestOptionsBase

De optionele parameters

Retouren

Beloof<modellen.TekstmatigingDetectLanguageResponse>

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

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

Parameters

textContentType
TextContentType1

Het inhoudstype. Mogelijke waarden zijn: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Inhoud naar scherm.

options
RequestOptionsBase

De optionele parameters

callback

ServiceCallback<DetectedLanguage>

De callback

detectLanguage(TextContentType1, HttpRequestBody, ServiceCallback<DetectedLanguage>)

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

Parameters

textContentType
TextContentType1

Het inhoudstype. Mogelijke waarden zijn: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Inhoud naar scherm.

callback

ServiceCallback<DetectedLanguage>

De callback

screenText(TextContentType, HttpRequestBody, ServiceCallback<Screen>)

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

Parameters

textContentType
TextContentType

Het inhoudstype. Mogelijke waarden zijn: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Inhoud naar scherm.

callback

ServiceCallback<Screen>

De callback

screenText(TextContentType, HttpRequestBody, TextModerationScreenTextOptionalParams)

Detecteert grof taalgebruik in meer dan 100 talen en komt overeen met aangepaste en gedeelde zwarte lijst.

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

Parameters

textContentType
TextContentType

Het inhoudstype. Mogelijke waarden zijn: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Inhoud naar scherm.

options
TextModerationScreenTextOptionalParams

De optionele parameters

Retouren

Beloof<modellen.TextModerationScreenTextResponse>

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

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

Parameters

textContentType
TextContentType

Het inhoudstype. Mogelijke waarden zijn: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Inhoud naar scherm.

options
TextModerationScreenTextOptionalParams

De optionele parameters

callback

ServiceCallback<Screen>

De callback