class Azure::CognitiveServices::LuisAuthoring::V2_0::Models::EntityLabelObject

Defines the entity type and position of the extracted entity within the example.

Attributes

end_char_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.

start_char_index[RW]

@return [Integer] The index within the utterance where the extracted entity starts.

Public Class Methods

mapper() click to toggle source

Mapper for EntityLabelObject class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_label_object.rb, line 35
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EntityLabelObject',
    type: {
      name: 'Composite',
      class_name: 'EntityLabelObject',
      model_properties: {
        entity_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'entityName',
          type: {
            name: 'String'
          }
        },
        start_char_index: {
          client_side_validation: true,
          required: true,
          serialized_name: 'startCharIndex',
          type: {
            name: 'Number'
          }
        },
        end_char_index: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endCharIndex',
          type: {
            name: 'Number'
          }
        },
        role: {
          client_side_validation: true,
          required: false,
          serialized_name: 'role',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end