Class: Google::Cloud::Language::V1beta2::Sentiment
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1beta2::Sentiment
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v1beta2/language_service.rb
Overview
Represents the feeling associated with the entire text or entities in the text. Next ID: 6
Instance Attribute Summary collapse
-
#magnitude ⇒ ::Float
A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
-
#score ⇒ ::Float
Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
Instance Attribute Details
#magnitude ⇒ ::Float
Returns A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative).
259 260 261 262 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 259 class Sentiment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#score ⇒ ::Float
Returns Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
259 260 261 262 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 259 class Sentiment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |