TextModerationExtensions.DetectLanguage(ITextModeration, String, Stream) Method

Definition

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.

public static Microsoft.Azure.CognitiveServices.ContentModerator.Models.DetectedLanguage DetectLanguage (this Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration operations, string textContentType, System.IO.Stream textContent);
static member DetectLanguage : Microsoft.Azure.CognitiveServices.ContentModerator.ITextModeration * string * System.IO.Stream -> Microsoft.Azure.CognitiveServices.ContentModerator.Models.DetectedLanguage
<Extension()>
Public Function DetectLanguage (operations As ITextModeration, textContentType As String, textContent As Stream) As DetectedLanguage

Parameters

operations
ITextModeration

The operations group for this extension method.

textContentType
System.String

The content type. Possible values include: 'text/plain', 'text/html', 'text/xml', 'text/markdown'

textContent
System.IO.Stream

Content to screen.

Returns

DetectedLanguage

Applies to