TranslationTextModelFactory.DetectedLanguage(String, Single) Method

Definition

An object describing the detected language.

public static Azure.AI.Translation.Text.DetectedLanguage DetectedLanguage(string language = default, float score = 0);
static member DetectedLanguage : string * single -> Azure.AI.Translation.Text.DetectedLanguage
Public Shared Function DetectedLanguage (Optional language As String = Nothing, Optional score As Single = 0) As DetectedLanguage

Parameters

language
String

A string representing the code of the detected language.

score
Single

A float value indicating the confidence in the result. The score is between zero and one and a low score indicates a low confidence.

Returns

A new DetectedLanguage instance for mocking.

Applies to