Freigeben über


TextModerationExtensions.DetectLanguageAsync Methode

Definition

Mit diesem Vorgang wird die Sprache der jeweiligen Eingabe erkannt. Gibt das <a href="http://www-01.sil.org/iso639-3/codes.asp"> ISO 639-3 Code</a> für die vorherrschende Sprache, die den übermittelten Text umfasst. Es werden mehr als 110 Sprachen unterstützt.

public static System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.DetectedLanguage> DetectLanguageAsync (this Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration operations, string textContentType, System.IO.Stream textContent, System.Threading.CancellationToken cancellationToken = default);
static member DetectLanguageAsync : Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration * string * System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.CognitiveServices.ContentModerator.Models.DetectedLanguage>
<Extension()>
Public Function DetectLanguageAsync (operations As ITextModeration, textContentType As String, textContent As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DetectedLanguage)

Parameter

operations
ITextModeration

Die Vorgangsgruppe für diese Erweiterungsmethode.

textContentType
String

Der Inhaltstyp. Mögliche Werte: "text/plain", "text/html", "text/xml", "text/markdown"

textContent
Stream

Inhalt, der angezeigt werden soll.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: