TextModeration class

Classe che rappresenta un oggetto TextModeration.

Costruttori

TextModeration(ContentModeratorClientContext)

Creare un oggetto TextModeration.

Dettagli costruttore

TextModeration(ContentModeratorClientContext)

Creare un oggetto TextModeration.

new TextModeration(client: ContentModeratorClientContext)

Parametri

client
ContentModeratorClientContext

Riferimento al client del servizio.

Dettagli metodo

detectLanguage(TextContentType1, HttpRequestBody, RequestOptionsBase)

Questa operazione rileverà la lingua del contenuto di input specificato. Restituisce il codice ISO 639-3 per la lingua predominante che comprende il testo inviato. Oltre 110 lingue supportate.

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

Parametri

textContentType
TextContentType1

Tipo di contenuto. I valori possibili includono: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenuto da visualizzare sullo schermo.

options
RequestOptionsBase

Parametri facoltativi

Valori restituiti

Promise<Models.TextModerationDetectLanguageResponse>

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

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

Parametri

textContentType
TextContentType1

Tipo di contenuto. I valori possibili includono: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenuto da visualizzare sullo schermo.

options
RequestOptionsBase

Parametri facoltativi

callback

ServiceCallback<DetectedLanguage>

Callback

detectLanguage(TextContentType1, HttpRequestBody, ServiceCallback<DetectedLanguage>)

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

Parametri

textContentType
TextContentType1

Tipo di contenuto. I valori possibili includono: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenuto da visualizzare sullo schermo.

callback

ServiceCallback<DetectedLanguage>

Callback

screenText(TextContentType, HttpRequestBody, ServiceCallback<Screen>)

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

Parametri

textContentType
TextContentType

Tipo di contenuto. I valori possibili includono: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenuto da visualizzare sullo schermo.

callback

ServiceCallback<Screen>

Callback

screenText(TextContentType, HttpRequestBody, TextModerationScreenTextOptionalParams)

Rileva il contenuto volgare in più di 100 lingue e la corrispondenza con elenchi di elementi non consentiti personalizzati e condivisi.

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

Parametri

textContentType
TextContentType

Tipo di contenuto. I valori possibili includono: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenuto da visualizzare sullo schermo.

options
TextModerationScreenTextOptionalParams

Parametri facoltativi

Valori restituiti

Promise<Models.TextModerationScreenTextResponse>

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

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

Parametri

textContentType
TextContentType

Tipo di contenuto. I valori possibili includono: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

Contenuto da visualizzare sullo schermo.

options
TextModerationScreenTextOptionalParams

Parametri facoltativi

callback

ServiceCallback<Screen>

Callback