Condividi tramite


AnswerSpan Class

Definition

Answer span object of QnA.

public class AnswerSpan : System.ClientModel.Primitives.IJsonModel<Azure.AI.Language.Conversations.Models.AnswerSpan>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Language.Conversations.Models.AnswerSpan>
type AnswerSpan = class
    interface IJsonModel<AnswerSpan>
    interface IPersistableModel<AnswerSpan>
Public Class AnswerSpan
Implements IJsonModel(Of AnswerSpan), IPersistableModel(Of AnswerSpan)
Inheritance
AnswerSpan
Implements

Properties

ConfidenceScore

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

Length

The length of the answer span.

Offset

The answer span offset from the start of answer.

Text

Predicted text of answer span.

Explicit Interface Implementations

IJsonModel<AnswerSpan>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AnswerSpan>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AnswerSpan>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AnswerSpan>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AnswerSpan>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to