Partager via


ShortAnswerConfig Class

Definition

To configure Answer span prediction feature.

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

Constructors

ShortAnswerConfig()

Initializes a new instance of ShortAnswerConfig.

Properties

ConfidenceThreshold

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

Enable

Enable or disable Answer Span prediction.

Top

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

Explicit Interface Implementations

IJsonModel<ShortAnswerConfig>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ShortAnswerConfig>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ShortAnswerConfig>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ShortAnswerConfig>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ShortAnswerConfig>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to