Partilhar via


TextModerationExtensions.ScreenTextAsync Método

Definição

Detectar profanação e correspondência com listas negras personalizadas e compartilhadas

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)

Parâmetros

operations
ITextModeration

O grupo de operações para esse método de extensão.

textContentType
String

O tipo de conteúdo. Os valores possíveis incluem: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
Stream

Conteúdo para tela.

language
String

Idioma do texto.

autocorrect
Nullable<Boolean>

Autocorreção de texto.

pII
Nullable<Boolean>

Detectar informações de identificação pessoal.

listId
String

A ID da lista.

classify
Nullable<Boolean>

Classificar entrada.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Comentários

Detecta palavrões em mais de 100 idiomas e corresponde a listas negras personalizadas e compartilhadas.

Aplica-se a