ConversationsModelFactory.ConversationEntity 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 ConversationEntity.
public static Azure.AI.Language.Conversations.Models.ConversationEntity ConversationEntity (string category = default, string text = default, int offset = 0, int length = 0, float confidence = 0, System.Collections.Generic.IEnumerable<Azure.AI.Language.Conversations.Models.ResolutionBase> resolutions = default, System.Collections.Generic.IEnumerable<Azure.AI.Language.Conversations.Models.ConversationEntityExtraInformation> extraInformation = default);
static member ConversationEntity : string * string * int * int * single * seq<Azure.AI.Language.Conversations.Models.ResolutionBase> * seq<Azure.AI.Language.Conversations.Models.ConversationEntityExtraInformation> -> Azure.AI.Language.Conversations.Models.ConversationEntity
Public Shared Function ConversationEntity (Optional category As String = Nothing, Optional text As String = Nothing, Optional offset As Integer = 0, Optional length As Integer = 0, Optional confidence As Single = 0, Optional resolutions As IEnumerable(Of ResolutionBase) = Nothing, Optional extraInformation As IEnumerable(Of ConversationEntityExtraInformation) = Nothing) As ConversationEntity
Parameters
- category
- String
The entity category.
- text
- String
The predicted entity text.
- offset
- Int32
The starting index of this entity in the query.
- length
- Int32
The length of the text.
- confidence
- Single
The entity confidence score.
- resolutions
- IEnumerable<ResolutionBase>
The collection of entity resolution objects. Please note ResolutionBase is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AgeResolution, AreaResolution, BooleanResolution, CurrencyResolution, DateTimeResolution, InformationResolution, LengthResolution, NumberResolution, NumericRangeResolution, OrdinalResolution, SpeedResolution, TemperatureResolution, TemporalSpanResolution, VolumeResolution and WeightResolution.
- extraInformation
- IEnumerable<ConversationEntityExtraInformation>
The collection of entity extra information objects. Please note ConversationEntityExtraInformation is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include EntitySubtype, ListKey and RegexKey.
Returns
A new ConversationEntity instance for mocking.
Applies to
Azure SDK for .NET