class Azure::CognitiveServices::TextAnalytics::V2_0::Models::SentimentBatchResultItem

Model object.

Attributes

id[RW]

@return [String] Unique document identifier.

score[RW]

@return [Float] A decimal number between 0 and 1 denoting the sentiment of the document. A score above 0.7 usually refers to a positive document while a score below 0.3 normally has a negative connotation. Mid values refer to neutral text.

Public Class Methods

mapper() click to toggle source

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

# File lib/v2.0/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result_item.rb, line 30
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SentimentBatchResultItem',
    type: {
      name: 'Composite',
      class_name: 'SentimentBatchResultItem',
      model_properties: {
        score: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'score',
          type: {
            name: 'Double'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end