class Azure::CognitiveServices::LuisRuntime::V3_0::Models::ExternalEntity

Defines a user predicted entity that extends an already existing one.

Attributes

entity_length[RW]

@return [Integer] The length of the predicted entity.

entity_name[RW]

@return [String] The name of the entity to extend.

resolution[RW]

@return A user supplied custom resolution to return as the entity's prediction.

score[RW]

@return [Float] A user supplied score to return as the entity's prediction score.

start_index[RW]

@return [Integer] The start character index of the predicted entity.

Private Class Methods

mapper() click to toggle source

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

# File lib/3.0/generated/azure_cognitiveservices_luisruntime/models/external_entity.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ExternalEntity',
    type: {
      name: 'Composite',
      class_name: 'ExternalEntity',
      model_properties: {
        entity_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'entityName',
          type: {
            name: 'String'
          }
        },
        start_index: {
          client_side_validation: true,
          required: true,
          serialized_name: 'startIndex',
          type: {
            name: 'Number'
          }
        },
        entity_length: {
          client_side_validation: true,
          required: true,
          serialized_name: 'entityLength',
          type: {
            name: 'Number'
          }
        },
        resolution: {
          client_side_validation: true,
          required: false,
          serialized_name: 'resolution',
          type: {
            name: 'Object'
          }
        },
        score: {
          client_side_validation: true,
          required: false,
          serialized_name: 'score',
          type: {
            name: 'Double'
          }
        }
      }
    }
  }
end