class Azure::CognitiveServices::LuisAuthoring::V3_0_preview::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 predicted entity.

role_id[RW]

@return The role id for the predicted entity.

start_token_index[RW]

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

Private Class Methods

mapper() click to toggle source

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

# File lib/3.0-preview/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