TextModeration class
TextModeration'i temsil eden sınıf.
Oluşturucular
Text |
TextModeration oluşturun. |
Yöntemler
detect |
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. |
detect |
|
detect |
|
screen |
|
screen |
100'den fazla dilde küfür algılar ve özel ve paylaşılan kara listelerle eşleştir. |
screen |
Oluşturucu Ayrıntıları
TextModeration(ContentModeratorClientContext)
TextModeration oluşturun.
new TextModeration(client: ContentModeratorClientContext)
Parametreler
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<TextModerationDetectLanguageResponse>
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
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
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
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.
İsteğe bağlı parametreler
Döndürülenler
Promise<TextModerationScreenTextResponse>
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.
İsteğe bağlı parametreler
- callback
Geri çağırma