Class: Google::Cloud::Language::V1beta2::Sentiment

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb

Overview

Represents the feeling associated with the entire text or entities in the text.

Instance Attribute Summary collapse

Instance Attribute Details

#magnitudeFloat

Returns A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).

Returns:

  • (Float)

    A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).



159
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 159

class Sentiment; end

#scoreFloat

Returns Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).

Returns:

  • (Float)

    Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).



159
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 159

class Sentiment; end