TextModerations Interface
public interface TextModerations
An instance of this class provides access to all the operations defined in TextModerations.
Method Summary
Modifier and Type | Method and Description |
---|---|
Detected |
detectLanguage(String textContentType, byte[] textContent)
This operation will detect the language of given input content. Returns the <a href="http://www-01.sil.org/iso639-3/codes.asp">ISO 639-3 code</a> for the predominant language comprising the submitted text. Over 110 languages supported. |
Observable<Detected |
detectLanguageAsync(String textContentType, byte[] textContent)
This operation will detect the language of given input content. Returns the <a href="http://www-01.sil.org/iso639-3/codes.asp">ISO 639-3 code</a> for the predominant language comprising the submitted text. Over 110 languages supported. |
TextModerationsScreenTextDefinitionStages.WithTextContentType |
screenText()
Detect profanity and match against custom and shared blacklists. Detects profanity in more than 100 languages and match against custom and shared blacklists. |
Screen |
screenText(String textContentType, byte[] textContent, ScreenTextOptionalParameter screenTextOptionalParameter)
Detect profanity and match against custom and shared blacklists. Detects profanity in more than 100 languages and match against custom and shared blacklists. |
Observable<Screen> |
screenTextAsync(String textContentType, byte[] textContent, ScreenTextOptionalParameter screenTextOptionalParameter)
Detect profanity and match against custom and shared blacklists. Detects profanity in more than 100 languages and match against custom and shared blacklists. |
Method Details
detectLanguage
public DetectedLanguage detectLanguage(String textContentType, byte[] textContent)
This operation will detect the language of given input content. Returns the <a href="http://www-01.sil.org/iso639-3/codes.asp">ISO 639-3 code</a> for the predominant language comprising the submitted text. Over 110 languages supported.
Parameters:
Returns:
Throws:
detectLanguageAsync
public Observable
This operation will detect the language of given input content. Returns the <a href="http://www-01.sil.org/iso639-3/codes.asp">ISO 639-3 code</a> for the predominant language comprising the submitted text. Over 110 languages supported.
Parameters:
Returns:
Throws:
screenText
public TextModerationsScreenTextDefinitionStages.WithTextContentType screenText()
Detect profanity and match against custom and shared blacklists. Detects profanity in more than 100 languages and match against custom and shared blacklists.
Returns:
screenText
public Screen screenText(String textContentType, byte[] textContent, ScreenTextOptionalParameter screenTextOptionalParameter)
Detect profanity and match against custom and shared blacklists. Detects profanity in more than 100 languages and match against custom and shared blacklists.
Parameters:
Returns:
Throws:
screenTextAsync
public Observable
Detect profanity and match against custom and shared blacklists. Detects profanity in more than 100 languages and match against custom and shared blacklists.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour