Udostępnij za pośrednictwem


TextAnalysisModelFactory.DetectedLanguage Method

Definition

Initializes a new instance of DetectedLanguage.

public static Azure.AI.Language.Text.DetectedLanguage DetectedLanguage (string name = default, string iso6391Name = default, double confidenceScore = 0, Azure.AI.Language.Text.ScriptKind? scriptName = default, Azure.AI.Language.Text.ScriptCode? scriptIso15924Code = default);
static member DetectedLanguage : string * string * double * Nullable<Azure.AI.Language.Text.ScriptKind> * Nullable<Azure.AI.Language.Text.ScriptCode> -> Azure.AI.Language.Text.DetectedLanguage
Public Shared Function DetectedLanguage (Optional name As String = Nothing, Optional iso6391Name As String = Nothing, Optional confidenceScore As Double = 0, Optional scriptName As Nullable(Of ScriptKind) = Nothing, Optional scriptIso15924Code As Nullable(Of ScriptCode) = Nothing) As DetectedLanguage

Parameters

name
String

Long name of a detected language (e.g. English, French).

iso6391Name
String

A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr).

confidenceScore
Double

A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true.

scriptName
Nullable<ScriptKind>

Identifies the script name of the input document according to the ISO 15924 standard.

scriptIso15924Code
Nullable<ScriptCode>

Identifies the script code of the input document according to the ISO 15924 standard.

Returns

A new DetectedLanguage instance for mocking.

Applies to