class Azure::CognitiveServices::LuisRuntime::V3_0::Models::Prediction

Represents the prediction of a query.

Attributes

altered_query[RW]

@return [String] The query after spell checking. Only set if spell check was enabled and a spelling mistake was found.

entities[RW]

@return A dictionary representing the entities that fired.

intents[RW]

@return [Hash{String => Intent}] A dictionary representing the intents that fired.

sentiment[RW]

@return [Sentiment] The result of the sentiment analysis.

top_intent[RW]

@return [String] The name of the top scoring intent.

Private Class Methods

mapper() click to toggle source

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

# File lib/3.0/generated/azure_cognitiveservices_luisruntime/models/prediction.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Prediction',
    type: {
      name: 'Composite',
      class_name: 'Prediction',
      model_properties: {
        altered_query: {
          client_side_validation: true,
          required: false,
          serialized_name: 'alteredQuery',
          type: {
            name: 'String'
          }
        },
        top_intent: {
          client_side_validation: true,
          required: true,
          serialized_name: 'topIntent',
          type: {
            name: 'String'
          }
        },
        intents: {
          client_side_validation: true,
          required: true,
          serialized_name: 'intents',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'IntentElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Intent'
                }
            }
          }
        },
        entities: {
          client_side_validation: true,
          required: true,
          serialized_name: 'entities',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ObjectElementType',
                type: {
                  name: 'Object'
                }
            }
          }
        },
        sentiment: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sentiment',
          type: {
            name: 'Composite',
            class_name: 'Sentiment'
          }
        }
      }
    }
  }
end