class Azure::CognitiveServices::LuisAuthoring::V2_0::Models::JSONEntity

Exported Model - Extracted Entity from utterance.

Attributes

end_pos[RW]

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

entity[RW]

@return [String] The entity name.

role[RW]

@return [String] The role of the entity within the utterance.

start_pos[RW]

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

Public Class Methods

mapper() click to toggle source

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

# File lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/jsonentity.rb, line 34
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'JSONEntity',
    type: {
      name: 'Composite',
      class_name: 'JSONEntity',
      model_properties: {
        start_pos: {
          client_side_validation: true,
          required: true,
          serialized_name: 'startPos',
          type: {
            name: 'Number'
          }
        },
        end_pos: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endPos',
          type: {
            name: 'Number'
          }
        },
        entity: {
          client_side_validation: true,
          required: true,
          serialized_name: 'entity',
          type: {
            name: 'String'
          }
        },
        role: {
          client_side_validation: true,
          required: false,
          serialized_name: 'role',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end