QuestionAnsweringModelFactory.ShortAnswerOptions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Minimum threshold score required to include an answer span, value ranges from 0 to 1.
Returns
A new ShortAnswerOptions instance for mocking.