QuestionAnsweringModelFactory.ShortAnswerOptions Method

Definition

Initializes a new instance of ShortAnswerOptions.

public static Azure.AI.Language.QuestionAnswering.Inference.ShortAnswerOptions ShortAnswerOptions(bool isEnabled = false, double? confidenceThreshold = default, int? size = default);
static member ShortAnswerOptions : bool * Nullable<double> * Nullable<int> -> Azure.AI.Language.QuestionAnswering.Inference.ShortAnswerOptions
Public Shared Function ShortAnswerOptions (Optional isEnabled As Boolean = false, Optional confidenceThreshold As Nullable(Of Double) = Nothing, Optional size As Nullable(Of Integer) = Nothing) As ShortAnswerOptions

Parameters

isEnabled
Boolean

Enable or disable Answer Span prediction.

confidenceThreshold
Nullable<Double>

Minimum threshold score required to include an answer span, value ranges from 0 to 1.

size
Nullable<Int32>

Number of Top answers to be considered for span prediction from 1 to 10.

Returns

A new ShortAnswerOptions instance for mocking.

Applies to