TextModeration class
TextModeration を表すクラス。
コンストラクター
| Text |
TextModeration を作成します。 |
メソッド
| detect |
この操作では、指定された入力コンテンツの言語が検出されます。 送信されたテキストを構成する主要言語の ISO 639-3 コードを返します。 110 を超える言語がサポートされています。 |
| detect |
|
| detect |
|
| screen |
|
| screen |
100 を超える言語で不適切な表現を検出し、カスタムブラックリストや共有ブラックリストと照合します。 |
| screen |
コンストラクターの詳細
TextModeration(ContentModeratorClientContext)
TextModeration を作成します。
new TextModeration(client: ContentModeratorClientContext)
パラメーター
サービス クライアントへの参照。
メソッドの詳細
detectLanguage(TextContentType1, HttpRequestBody, RequestOptionsBase)
この操作では、指定された入力コンテンツの言語が検出されます。 送信されたテキストを構成する主要言語の ISO 639-3 コードを返します。 110 を超える言語がサポートされています。
function detectLanguage(textContentType: TextContentType1, textContent: HttpRequestBody, options?: RequestOptionsBase): Promise<TextModerationDetectLanguageResponse>
パラメーター
- textContentType
- TextContentType1
コンテンツ タイプ。 指定できる値は、'text/plain'、'text/html'、'text/xml'、'text/markdown' です。
- textContent
- HttpRequestBody
画面に表示するコンテンツ。
- options
- RequestOptionsBase
省略可能なパラメーター
戻り値
Promise<TextModerationDetectLanguageResponse>
Promise<Models.TextModerationDetectLanguageResponse>
detectLanguage(TextContentType1, HttpRequestBody, RequestOptionsBase, ServiceCallback<DetectedLanguage>)
function detectLanguage(textContentType: TextContentType1, textContent: HttpRequestBody, options: RequestOptionsBase, callback: ServiceCallback<DetectedLanguage>)
パラメーター
- textContentType
- TextContentType1
コンテンツ タイプ。 指定できる値は、'text/plain'、'text/html'、'text/xml'、'text/markdown' です。
- textContent
- HttpRequestBody
画面に表示するコンテンツ。
- options
- RequestOptionsBase
省略可能なパラメーター
- callback
コールバック
detectLanguage(TextContentType1, HttpRequestBody, ServiceCallback<DetectedLanguage>)
function detectLanguage(textContentType: TextContentType1, textContent: HttpRequestBody, callback: ServiceCallback<DetectedLanguage>)
パラメーター
- textContentType
- TextContentType1
コンテンツ タイプ。 指定できる値は、'text/plain'、'text/html'、'text/xml'、'text/markdown' です。
- textContent
- HttpRequestBody
画面に表示するコンテンツ。
- callback
コールバック
screenText(TextContentType, HttpRequestBody, ServiceCallback<Screen>)
function screenText(textContentType: TextContentType, textContent: HttpRequestBody, callback: ServiceCallback<Screen>)
パラメーター
- textContentType
- TextContentType
コンテンツ タイプ。 指定できる値は、'text/plain'、'text/html'、'text/xml'、'text/markdown' です。
- textContent
- HttpRequestBody
画面に表示するコンテンツ。
- callback
コールバック
screenText(TextContentType, HttpRequestBody, TextModerationScreenTextOptionalParams)
100 を超える言語で不適切な表現を検出し、カスタムブラックリストや共有ブラックリストと照合します。
function screenText(textContentType: TextContentType, textContent: HttpRequestBody, options?: TextModerationScreenTextOptionalParams): Promise<TextModerationScreenTextResponse>
パラメーター
- textContentType
- TextContentType
コンテンツ タイプ。 指定できる値は、'text/plain'、'text/html'、'text/xml'、'text/markdown' です。
- textContent
- HttpRequestBody
画面に表示するコンテンツ。
省略可能なパラメーター
戻り値
Promise<TextModerationScreenTextResponse>
Promise<Models.TextModerationScreenTextResponse(英語)>
screenText(TextContentType, HttpRequestBody, TextModerationScreenTextOptionalParams, ServiceCallback<Screen>)
function screenText(textContentType: TextContentType, textContent: HttpRequestBody, options: TextModerationScreenTextOptionalParams, callback: ServiceCallback<Screen>)
パラメーター
- textContentType
- TextContentType
コンテンツ タイプ。 指定できる値は、'text/plain'、'text/html'、'text/xml'、'text/markdown' です。
- textContent
- HttpRequestBody
画面に表示するコンテンツ。
省略可能なパラメーター
- callback
コールバック