你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: