Aracılığıyla paylaş


TextModeration class

TextModeration'i temsil eden sınıf.

Oluşturucular

TextModeration(ContentModeratorClientContext)

TextModeration oluşturun.

Yöntemler

detectLanguage(TextContentType1, HttpRequestBody, RequestOptionsBase)

Bu işlem, verilen giriş içeriğinin dilini algılar. Gönderilen metni oluşturan baskın dil için ISO 639-3 kodunu döndürür. Desteklenen 110'un üzerinde dil.

detectLanguage(TextContentType1, HttpRequestBody, RequestOptionsBase, ServiceCallback<DetectedLanguage>)
detectLanguage(TextContentType1, HttpRequestBody, ServiceCallback<DetectedLanguage>)
screenText(TextContentType, HttpRequestBody, ServiceCallback<Screen>)
screenText(TextContentType, HttpRequestBody, TextModerationScreenTextOptionalParams)

100'den fazla dilde küfür algılar ve özel ve paylaşılan kara listelerle eşleştir.

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

Oluşturucu Ayrıntıları

TextModeration(ContentModeratorClientContext)

TextModeration oluşturun.

new TextModeration(client: ContentModeratorClientContext)

Parametreler

client
ContentModeratorClientContext

Hizmet istemcisine başvuru.

Yöntem Ayrıntıları

detectLanguage(TextContentType1, HttpRequestBody, RequestOptionsBase)

Bu işlem, verilen giriş içeriğinin dilini algılar. Gönderilen metni oluşturan baskın dil için ISO 639-3 kodunu döndürür. Desteklenen 110'un üzerinde dil.

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

Parametreler

textContentType
TextContentType1

İçerik türü. Olası değerler şunlardır: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

ekrana içerik.

options
RequestOptionsBase

İsteğe bağlı parametreler

Döndürülenler

Promise<Models.TextModerationDetectLanguageResponse>

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

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

Parametreler

textContentType
TextContentType1

İçerik türü. Olası değerler şunlardır: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

ekrana içerik.

options
RequestOptionsBase

İsteğe bağlı parametreler

callback

ServiceCallback<DetectedLanguage>

Geri çağırma

detectLanguage(TextContentType1, HttpRequestBody, ServiceCallback<DetectedLanguage>)

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

Parametreler

textContentType
TextContentType1

İçerik türü. Olası değerler şunlardır: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

ekrana içerik.

callback

ServiceCallback<DetectedLanguage>

Geri çağırma

screenText(TextContentType, HttpRequestBody, ServiceCallback<Screen>)

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

Parametreler

textContentType
TextContentType

İçerik türü. Olası değerler şunlardır: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

ekrana içerik.

callback

ServiceCallback<Screen>

Geri çağırma

screenText(TextContentType, HttpRequestBody, TextModerationScreenTextOptionalParams)

100'den fazla dilde küfür algılar ve özel ve paylaşılan kara listelerle eşleştir.

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

Parametreler

textContentType
TextContentType

İçerik türü. Olası değerler şunlardır: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

ekrana içerik.

options
TextModerationScreenTextOptionalParams

İsteğe bağlı parametreler

Döndürülenler

Promise<Models.TextModerationScreenTextResponse>

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

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

Parametreler

textContentType
TextContentType

İçerik türü. Olası değerler şunlardır: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
HttpRequestBody

ekrana içerik.

options
TextModerationScreenTextOptionalParams

İsteğe bağlı parametreler

callback

ServiceCallback<Screen>

Geri çağırma