class Azure::CognitiveServices::TextAnalytics::V2_1::Models::SentimentBatchResultItem
Model object.
Attributes
id[RW]
@return [String] Unique, non-empty 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.
statistics[RW]
@return [DocumentStatistics] (Optional) if showStats=true was specified in the request this field will contain information about the document payload.
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.1/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result_item.rb, line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SentimentBatchResultItem', type: { name: 'Composite', class_name: 'SentimentBatchResultItem', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } }, score: { client_side_validation: true, required: false, serialized_name: 'score', type: { name: 'Double' } }, statistics: { client_side_validation: true, required: false, serialized_name: 'statistics', type: { name: 'Composite', class_name: 'DocumentStatistics' } } } } } end