TextModerationExtensions.DetectLanguage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- String
The content type. Possible values include: 'text/plain', 'text/html', 'text/xml', 'text/markdown'
- textContent
- Stream
Content to screen.
Returns
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應