TextModeration class

Clase que representa un TextModeration.

Constructores

TextModeration(ContentModeratorClientContext)

Cree un TextModeration.

Detalles del constructor

TextModeration(ContentModeratorClientContext)

Cree un TextModeration.

new TextModeration(client: ContentModeratorClientContext)

Parámetros

client
ContentModeratorClientContext

Referencia al cliente de servicio.

Detalles del método

detectLanguage(TextContentType1, HttpRequestBody, RequestOptionsBase)

Esta operación detectará el idioma del contenido de entrada especificado. Devuelve el código ISO 639-3 para el idioma predominante que comprende el texto enviado. Se admiten más de 110 idiomas.

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

Parámetros

textContentType
TextContentType1

Tipo de contenido. Los valores posibles son: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenido que se va a pantalla.

options
RequestOptionsBase

Los parámetros opcionales

Devoluciones

Modelos de promesas.TextModerationDetectLanguageResponse<>

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

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

Parámetros

textContentType
TextContentType1

Tipo de contenido. Los valores posibles son: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenido que se va a pantalla.

options
RequestOptionsBase

Los parámetros opcionales

callback

ServiceCallback<DetectedLanguage>

Devolución de llamada

detectLanguage(TextContentType1, HttpRequestBody, ServiceCallback<DetectedLanguage>)

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

Parámetros

textContentType
TextContentType1

Tipo de contenido. Los valores posibles son: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenido que se va a pantalla.

callback

ServiceCallback<DetectedLanguage>

Devolución de llamada

screenText(TextContentType, HttpRequestBody, ServiceCallback<Screen>)

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

Parámetros

textContentType
TextContentType

Tipo de contenido. Los valores posibles son: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenido que se va a pantalla.

callback

ServiceCallback<Screen>

Devolución de llamada

screenText(TextContentType, HttpRequestBody, TextModerationScreenTextOptionalParams)

Detecta palabras soeces en más de 100 idiomas y coincide con listas negras personalizadas y compartidas.

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

Parámetros

textContentType
TextContentType

Tipo de contenido. Los valores posibles son: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenido que se va a pantalla.

options
TextModerationScreenTextOptionalParams

Los parámetros opcionales

Devoluciones

Modelos de promesa.TextModerationScreenTextResponse<>

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

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

Parámetros

textContentType
TextContentType

Tipo de contenido. Los valores posibles son: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenido que se va a pantalla.

options
TextModerationScreenTextOptionalParams

Los parámetros opcionales

callback

ServiceCallback<Screen>

Devolución de llamada