Class: Google::Cloud::Language::V1::EntityMention
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1::EntityMention
- Defined in:
- lib/google/cloud/language/v1/doc/google/cloud/language/v1/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
-
#text ⇒ Google::Cloud::Language::V1::TextSpan
The mention text.
-
#type ⇒ Google::Cloud::Language::V1::EntityMention::Type
The type of the entity mention.
Instance Attribute Details
#text ⇒ Google::Cloud::Language::V1::TextSpan
Returns The mention text.
742 743 744 745 746 747 748 749 750 751 752 753 754 |
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 742 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::V1::EntityMention::Type
Returns The type of the entity mention.
742 743 744 745 746 747 748 749 750 751 752 753 754 |
# File 'lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb', line 742 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 |