class Azure::CognitiveServices::LuisRuntime::V2_0::Models::EntityModel

An entity extracted from the utterance.

Attributes

additional_properties[RW]

@return Unmatched properties from the message are deserialized this collection

end_index[RW]

@return [Integer] The position of the last character of the matched entity within the utterance.

entity[RW]

@return [String] Name of the entity, as defined in LUIS.

start_index[RW]

@return [Integer] The position of the first character of the matched entity within the utterance.

type[RW]

@return [String] Type of the entity, as defined in LUIS.

Public Class Methods

mapper() click to toggle source

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

# File lib/2.0/generated/azure_cognitiveservices_luisruntime/models/entity_model.rb, line 38
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EntityModel',
    type: {
      name: 'Composite',
      class_name: 'EntityModel',
      model_properties: {
        additional_properties: {
          client_side_validation: true,
          required: false,
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ObjectElementType',
                type: {
                  name: 'Object'
                }
            }
          }
        },
        entity: {
          client_side_validation: true,
          required: true,
          serialized_name: 'entity',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        start_index: {
          client_side_validation: true,
          required: true,
          serialized_name: 'startIndex',
          type: {
            name: 'Number'
          }
        },
        end_index: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endIndex',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end