次の方法で共有


QuestionAnsweringModelFactory.TextAnswer メソッド

定義

TextAnswer の新しいインスタンスを初期化します。

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

パラメーター

answer
String

回答

confidence
Nullable<Double>

応答信頼度スコア。値の範囲は 0 から 1 です。

id
String

レコード ID。

shortAnswer
AnswerSpan

ユーザーの質問に関して span オブジェクトに回答します。

offset
Nullable<Int32>

文書の先頭からの文オフセット。

length
Nullable<Int32>

文の長さ。

戻り値

モック作成用の新しい TextAnswer インスタンス。

適用対象