TextModeration class
Klasse die een TextModeration vertegenwoordigt.
Constructors
Text |
Een tekstmoderatie maken. |
Methoden
detect |
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. |
detect |
|
detect |
|
screen |
|
screen |
Detecteert grof taalgebruik in meer dan 100 talen en komt overeen met aangepaste en gedeelde zwarte lijst. |
screen |
Constructordetails
TextModeration(ContentModeratorClientContext)
Een tekstmoderatie maken.
new TextModeration(client: ContentModeratorClientContext)
Parameters
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
Promise<TextModerationDetectLanguageResponse>
Promise<Models.TextModerationDetectLanguageResponse>
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
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
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
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.
De optionele parameters
Retouren
Promise<TextModerationScreenTextResponse>
Promise<Models.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.
De optionele parameters
- callback
De callback