Class: Google::Cloud::Language::V1beta2::EntityMention
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1beta2::EntityMention
- Defined in:
- lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb
Overview
Represents a mention for an entity in the text. Currently, proper noun mentions are supported.
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#sentiment ⇒ Google::Cloud::Language::V1beta2::Sentiment
For calls to AnalyzeEntitySentiment or if AnnotateTextRequest::Features#extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
-
#text ⇒ Google::Cloud::Language::V1beta2::TextSpan
The mention text.
-
#type ⇒ Google::Cloud::Language::V1beta2::EntityMention::Type
The type of the entity mention.
Instance Attribute Details
#sentiment ⇒ Google::Cloud::Language::V1beta2::Sentiment
Returns For calls to AnalyzeEntitySentiment or if AnnotateTextRequest::Features#extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document.
750 751 752 753 754 755 756 757 758 759 760 761 762 |
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 750 class EntityMention # The supported types of mentions. module Type # Unknown TYPE_UNKNOWN = 0 # Proper name PROPER = 1 # Common noun (or noun compound) COMMON = 2 end end |
#text ⇒ Google::Cloud::Language::V1beta2::TextSpan
Returns The mention text.
750 751 752 753 754 755 756 757 758 759 760 761 762 |
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 750 class EntityMention # The supported types of mentions. module Type # Unknown TYPE_UNKNOWN = 0 # Proper name PROPER = 1 # Common noun (or noun compound) COMMON = 2 end end |
#type ⇒ Google::Cloud::Language::V1beta2::EntityMention::Type
Returns The type of the entity mention.
750 751 752 753 754 755 756 757 758 759 760 761 762 |
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 750 class EntityMention # The supported types of mentions. module Type # Unknown TYPE_UNKNOWN = 0 # Proper name PROPER = 1 # Common noun (or noun compound) COMMON = 2 end end |