class Azure::CognitiveServices::LuisAuthoring::V2_0::Models::EntityLabel
Defines the entity type and position of the extracted entity within the example.
Attributes
end_token_index[RW]
@return [Integer] The index within the utterance where the extracted entity ends.
entity_name[RW]
@return [String] The entity type.
role[RW]
@return [String] The role of the entity within the utterance.
role_id[RW]
@return [String] The role Id.
start_token_index[RW]
@return [Integer] The index within the utterance where the extracted entity starts.
Public Class Methods
mapper()
click to toggle source
Mapper for EntityLabel
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label.rb, line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'EntityLabel', type: { name: 'Composite', class_name: 'EntityLabel', model_properties: { entity_name: { client_side_validation: true, required: true, serialized_name: 'entityName', type: { name: 'String' } }, start_token_index: { client_side_validation: true, required: true, serialized_name: 'startTokenIndex', type: { name: 'Number' } }, end_token_index: { client_side_validation: true, required: true, serialized_name: 'endTokenIndex', type: { name: 'Number' } }, role: { client_side_validation: true, required: false, serialized_name: 'role', type: { name: 'String' } }, role_id: { client_side_validation: true, required: false, serialized_name: 'roleId', type: { name: 'String' } } } } } end