class Azure::CognitiveServices::LuisAuthoring::V2_0::Models::EntityPrediction

A suggested entity.

Attributes

end_token_index[RW]

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

entity_name[RW]

@return [String] The entity's name

phrase[RW]

@return [String] The actual token(s) that comprise the entity.

start_token_index[RW]

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

Public Class Methods

mapper() click to toggle source

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

# File lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_prediction.rb, line 34
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EntityPrediction',
    type: {
      name: 'Composite',
      class_name: 'EntityPrediction',
      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'
          }
        },
        phrase: {
          client_side_validation: true,
          required: true,
          serialized_name: 'phrase',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end