Aracılığıyla paylaş


QuestionAnsweringModelFactory.AnswerSpan Method

Definition

Initializes a new instance of AnswerSpan.

public static Azure.AI.Language.QuestionAnswering.AnswerSpan AnswerSpan (string text = default, double? confidence = default, int? offset = default, int? length = default);
static member AnswerSpan : string * Nullable<double> * Nullable<int> * Nullable<int> -> Azure.AI.Language.QuestionAnswering.AnswerSpan
Public Shared Function AnswerSpan (Optional text As String = Nothing, Optional confidence As Nullable(Of Double) = Nothing, Optional offset As Nullable(Of Integer) = Nothing, Optional length As Nullable(Of Integer) = Nothing) As AnswerSpan

Parameters

text
String

Predicted text of answer span.

confidence
Nullable<Double>

Predicted score of answer span, value ranges from 0 to 1.

offset
Nullable<Int32>

The answer span offset from the start of answer.

length
Nullable<Int32>

The length of the answer span.

Returns

A new AnswerSpan instance for mocking.

Applies to