TextModerationExtensions.ScreenTextAsync メソッド

定義

不適切な表現を検出し、カスタムブラックリストと共有ブラックリストと照合する

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Screen> ScreenTextAsync (this Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration operations, string textContentType, System.IO.Stream textContent, string language = default, bool? autocorrect = False, bool? pII = False, string listId = default, bool? classify = False, System.Threading.CancellationToken cancellationToken = default);
static member ScreenTextAsync : Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration * string * System.IO.Stream * string * Nullable<bool> * Nullable<bool> * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.Screen>
<Extension()>
Public Function ScreenTextAsync (operations As ITextModeration, textContentType As String, textContent As Stream, Optional language As String = Nothing, Optional autocorrect As Nullable(Of Boolean) = False, Optional pII As Nullable(Of Boolean) = False, Optional listId As String = Nothing, Optional classify As Nullable(Of Boolean) = False, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Screen)

パラメーター

operations
ITextModeration

この拡張メソッドの操作グループ。

textContentType
String

コンテンツの種類。 使用できる値は、'text/plain'、'text/html'、'text/xml'、'text/markdown' です。

textContent
Stream

画面に表示するコンテンツ。

language
String

テキストの言語

autocorrect
Nullable<Boolean>

テキストのオートコレクト。

pII
Nullable<Boolean>

個人を特定できる情報を検出します。

listId
String

リスト ID。

classify
Nullable<Boolean>

入力を分類します。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

注釈

100 を超える言語で不適切な表現を検出し、カスタムブラックリストと共有ブラックリストと照合します。

適用対象