次の方法で共有


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? script = default, Azure.AI.Language.Text.ScriptCode? scriptCode = 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 script As Nullable(Of ScriptKind) = Nothing, Optional scriptCode 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.

script
Nullable<ScriptKind>

Identifies the script of the input document.

scriptCode
Nullable<ScriptCode>

Identifies the script of the input document.

Returns

A new DetectedLanguage instance for mocking.

Applies to