class Azure::CognitiveServices::LuisRuntime::V2_0::Models::Sentiment

Sentiment of the input utterance.

Attributes

label[RW]

@return [String] The polarity of the sentiment, can be positive, neutral or negative.

score[RW]

@return [Float] Score of the sentiment, ranges from 0 (most negative) to 1 (most positive).

Public Class Methods

mapper() click to toggle source

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

# File lib/2.0/generated/azure_cognitiveservices_luisruntime/models/sentiment.rb, line 28
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Sentiment',
    type: {
      name: 'Composite',
      class_name: 'Sentiment',
      model_properties: {
        label: {
          client_side_validation: true,
          required: false,
          serialized_name: 'label',
          type: {
            name: 'String'
          }
        },
        score: {
          client_side_validation: true,
          required: false,
          serialized_name: 'score',
          type: {
            name: 'Double'
          }
        }
      }
    }
  }
end