Class: Aws::Comprehend::Types::TargetedSentimentMention
- Inherits:
-
Struct
- Object
- Struct
- Aws::Comprehend::Types::TargetedSentimentMention
- Defined in:
- gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb
Overview
Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#begin_offset ⇒ Integer
The offset into the document text where the mention begins.
-
#end_offset ⇒ Integer
The offset into the document text where the mention ends.
-
#group_score ⇒ Float
The confidence that all the entities mentioned in the group relate to the same entity.
-
#mention_sentiment ⇒ Types::MentionSentiment
Contains the sentiment and sentiment score for the mention.
-
#score ⇒ Float
Model confidence that the entity is relevant.
-
#text ⇒ String
The text in the document that identifies the entity.
-
#type ⇒ String
The type of the entity.
Instance Attribute Details
#begin_offset ⇒ Integer
The offset into the document text where the mention begins.
8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8424 class TargetedSentimentMention < Struct.new( :score, :group_score, :text, :type, :mention_sentiment, :begin_offset, :end_offset) SENSITIVE = [] include Aws::Structure end |
#end_offset ⇒ Integer
The offset into the document text where the mention ends.
8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8424 class TargetedSentimentMention < Struct.new( :score, :group_score, :text, :type, :mention_sentiment, :begin_offset, :end_offset) SENSITIVE = [] include Aws::Structure end |
#group_score ⇒ Float
The confidence that all the entities mentioned in the group relate to the same entity.
8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8424 class TargetedSentimentMention < Struct.new( :score, :group_score, :text, :type, :mention_sentiment, :begin_offset, :end_offset) SENSITIVE = [] include Aws::Structure end |
#mention_sentiment ⇒ Types::MentionSentiment
Contains the sentiment and sentiment score for the mention.
8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8424 class TargetedSentimentMention < Struct.new( :score, :group_score, :text, :type, :mention_sentiment, :begin_offset, :end_offset) SENSITIVE = [] include Aws::Structure end |
#score ⇒ Float
Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8424 class TargetedSentimentMention < Struct.new( :score, :group_score, :text, :type, :mention_sentiment, :begin_offset, :end_offset) SENSITIVE = [] include Aws::Structure end |
#text ⇒ String
The text in the document that identifies the entity.
8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8424 class TargetedSentimentMention < Struct.new( :score, :group_score, :text, :type, :mention_sentiment, :begin_offset, :end_offset) SENSITIVE = [] include Aws::Structure end |
#type ⇒ String
The type of the entity. Amazon Comprehend supports a variety of entity types.
8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 8424 class TargetedSentimentMention < Struct.new( :score, :group_score, :text, :type, :mention_sentiment, :begin_offset, :end_offset) SENSITIVE = [] include Aws::Structure end |