TextAnalyticsModelFactory.DetectedLanguage Method

Definition

Initializes a new instance of DetectedLanguage for mocking purposes.

public static Azure.AI.TextAnalytics.DetectedLanguage DetectedLanguage (string name, string iso6391Name, double confidenceScore, System.Collections.Generic.IList<Azure.AI.TextAnalytics.TextAnalyticsWarning> warnings = default);
static member DetectedLanguage : string * string * double * System.Collections.Generic.IList<Azure.AI.TextAnalytics.TextAnalyticsWarning> -> Azure.AI.TextAnalytics.DetectedLanguage
Public Shared Function DetectedLanguage (name As String, iso6391Name As String, confidenceScore As Double, Optional warnings As IList(Of TextAnalyticsWarning) = Nothing) As DetectedLanguage

Parameters

name
String

Sets the Name property.

iso6391Name
String

Sets the Iso6391Name property.

confidenceScore
Double

Sets the ConfidenceScore property.

warnings
IList<TextAnalyticsWarning>

Sets the Warnings property.

Returns

A new instance of DetectedLanguage for mocking purposes.

Applies to