Class: Google::Cloud::ContactCenterInsights::V1::Entity
- Inherits:
-
Object
- Object
- Google::Cloud::ContactCenterInsights::V1::Entity
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/contactcenterinsights/v1/resources.rb
Overview
The data for an entity annotation. Represents a phrase in the conversation that is a known entity, such as a person, an organization, or location.
Defined Under Namespace
Modules: Type Classes: MetadataEntry
Instance Attribute Summary collapse
-
#display_name ⇒ ::String
The representative name for the entity.
-
#metadata ⇒ ::Google::Protobuf::Map{::String => ::String}
Metadata associated with the entity.
-
#salience ⇒ ::Float
The salience score associated with the entity in the [0, 1.0] range.
-
#sentiment ⇒ ::Google::Cloud::ContactCenterInsights::V1::SentimentData
The aggregate sentiment expressed for this entity in the conversation.
-
#type ⇒ ::Google::Cloud::ContactCenterInsights::V1::Entity::Type
The entity type.
Instance Attribute Details
#display_name ⇒ ::String
Returns The representative name for the entity.
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 563 class Entity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class MetadataEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The type of the entity. For most entity types, the associated metadata is a # Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`). The table # below lists the associated fields for entities that have different # metadata. module Type # Unspecified. TYPE_UNSPECIFIED = 0 # Person. PERSON = 1 # Location. LOCATION = 2 # Organization. ORGANIZATION = 3 # Event. EVENT = 4 # Artwork. WORK_OF_ART = 5 # Consumer product. CONSUMER_GOOD = 6 # Other types of entities. OTHER = 7 # Phone number. # # The metadata lists the phone number (formatted according to local # convention), plus whichever additional elements appear in the text: # # * `number` - The actual number, broken down into sections according to # local convention. # * `national_prefix` - Country code, if detected. # * `area_code` - Region or area code, if detected. # * `extension` - Phone extension (to be dialed after connection), if # detected. PHONE_NUMBER = 9 # Address. # # The metadata identifies the street number and locality plus whichever # additional elements appear in the text: # # * `street_number` - Street number. # * `locality` - City or town. # * `street_name` - Street/route name, if detected. # * `postal_code` - Postal code, if detected. # * `country` - Country, if detected. # * `broad_region` - Administrative area, such as the state, if detected. # * `narrow_region` - Smaller administrative area, such as county, if # detected. # * `sublocality` - Used in Asian addresses to demark a district within a # city, if detected. ADDRESS = 10 # Date. # # The metadata identifies the components of the date: # # * `year` - Four digit year, if detected. # * `month` - Two digit month number, if detected. # * `day` - Two digit day number, if detected. DATE = 11 # Number. # # The metadata is the number itself. NUMBER = 12 # Price. # # The metadata identifies the `value` and `currency`. PRICE = 13 end end |
#metadata ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Metadata associated with the entity.
For most entity types, the metadata is a Wikipedia URL (wikipedia_url
)
and Knowledge Graph MID (mid
), if they are available. For the metadata
associated with other entity types, see the Type table below.
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 563 class Entity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class MetadataEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The type of the entity. For most entity types, the associated metadata is a # Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`). The table # below lists the associated fields for entities that have different # metadata. module Type # Unspecified. TYPE_UNSPECIFIED = 0 # Person. PERSON = 1 # Location. LOCATION = 2 # Organization. ORGANIZATION = 3 # Event. EVENT = 4 # Artwork. WORK_OF_ART = 5 # Consumer product. CONSUMER_GOOD = 6 # Other types of entities. OTHER = 7 # Phone number. # # The metadata lists the phone number (formatted according to local # convention), plus whichever additional elements appear in the text: # # * `number` - The actual number, broken down into sections according to # local convention. # * `national_prefix` - Country code, if detected. # * `area_code` - Region or area code, if detected. # * `extension` - Phone extension (to be dialed after connection), if # detected. PHONE_NUMBER = 9 # Address. # # The metadata identifies the street number and locality plus whichever # additional elements appear in the text: # # * `street_number` - Street number. # * `locality` - City or town. # * `street_name` - Street/route name, if detected. # * `postal_code` - Postal code, if detected. # * `country` - Country, if detected. # * `broad_region` - Administrative area, such as the state, if detected. # * `narrow_region` - Smaller administrative area, such as county, if # detected. # * `sublocality` - Used in Asian addresses to demark a district within a # city, if detected. ADDRESS = 10 # Date. # # The metadata identifies the components of the date: # # * `year` - Four digit year, if detected. # * `month` - Two digit month number, if detected. # * `day` - Two digit day number, if detected. DATE = 11 # Number. # # The metadata is the number itself. NUMBER = 12 # Price. # # The metadata identifies the `value` and `currency`. PRICE = 13 end end |
#salience ⇒ ::Float
Returns The salience score associated with the entity in the [0, 1.0] range.
The salience score for an entity provides information about the importance or centrality of that entity to the entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 563 class Entity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class MetadataEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The type of the entity. For most entity types, the associated metadata is a # Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`). The table # below lists the associated fields for entities that have different # metadata. module Type # Unspecified. TYPE_UNSPECIFIED = 0 # Person. PERSON = 1 # Location. LOCATION = 2 # Organization. ORGANIZATION = 3 # Event. EVENT = 4 # Artwork. WORK_OF_ART = 5 # Consumer product. CONSUMER_GOOD = 6 # Other types of entities. OTHER = 7 # Phone number. # # The metadata lists the phone number (formatted according to local # convention), plus whichever additional elements appear in the text: # # * `number` - The actual number, broken down into sections according to # local convention. # * `national_prefix` - Country code, if detected. # * `area_code` - Region or area code, if detected. # * `extension` - Phone extension (to be dialed after connection), if # detected. PHONE_NUMBER = 9 # Address. # # The metadata identifies the street number and locality plus whichever # additional elements appear in the text: # # * `street_number` - Street number. # * `locality` - City or town. # * `street_name` - Street/route name, if detected. # * `postal_code` - Postal code, if detected. # * `country` - Country, if detected. # * `broad_region` - Administrative area, such as the state, if detected. # * `narrow_region` - Smaller administrative area, such as county, if # detected. # * `sublocality` - Used in Asian addresses to demark a district within a # city, if detected. ADDRESS = 10 # Date. # # The metadata identifies the components of the date: # # * `year` - Four digit year, if detected. # * `month` - Two digit month number, if detected. # * `day` - Two digit day number, if detected. DATE = 11 # Number. # # The metadata is the number itself. NUMBER = 12 # Price. # # The metadata identifies the `value` and `currency`. PRICE = 13 end end |
#sentiment ⇒ ::Google::Cloud::ContactCenterInsights::V1::SentimentData
Returns The aggregate sentiment expressed for this entity in the conversation.
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 563 class Entity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class MetadataEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The type of the entity. For most entity types, the associated metadata is a # Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`). The table # below lists the associated fields for entities that have different # metadata. module Type # Unspecified. TYPE_UNSPECIFIED = 0 # Person. PERSON = 1 # Location. LOCATION = 2 # Organization. ORGANIZATION = 3 # Event. EVENT = 4 # Artwork. WORK_OF_ART = 5 # Consumer product. CONSUMER_GOOD = 6 # Other types of entities. OTHER = 7 # Phone number. # # The metadata lists the phone number (formatted according to local # convention), plus whichever additional elements appear in the text: # # * `number` - The actual number, broken down into sections according to # local convention. # * `national_prefix` - Country code, if detected. # * `area_code` - Region or area code, if detected. # * `extension` - Phone extension (to be dialed after connection), if # detected. PHONE_NUMBER = 9 # Address. # # The metadata identifies the street number and locality plus whichever # additional elements appear in the text: # # * `street_number` - Street number. # * `locality` - City or town. # * `street_name` - Street/route name, if detected. # * `postal_code` - Postal code, if detected. # * `country` - Country, if detected. # * `broad_region` - Administrative area, such as the state, if detected. # * `narrow_region` - Smaller administrative area, such as county, if # detected. # * `sublocality` - Used in Asian addresses to demark a district within a # city, if detected. ADDRESS = 10 # Date. # # The metadata identifies the components of the date: # # * `year` - Four digit year, if detected. # * `month` - Two digit month number, if detected. # * `day` - Two digit day number, if detected. DATE = 11 # Number. # # The metadata is the number itself. NUMBER = 12 # Price. # # The metadata identifies the `value` and `currency`. PRICE = 13 end end |
#type ⇒ ::Google::Cloud::ContactCenterInsights::V1::Entity::Type
Returns The entity type.
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 |
# File 'proto_docs/google/cloud/contactcenterinsights/v1/resources.rb', line 563 class Entity include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class MetadataEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The type of the entity. For most entity types, the associated metadata is a # Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`). The table # below lists the associated fields for entities that have different # metadata. module Type # Unspecified. TYPE_UNSPECIFIED = 0 # Person. PERSON = 1 # Location. LOCATION = 2 # Organization. ORGANIZATION = 3 # Event. EVENT = 4 # Artwork. WORK_OF_ART = 5 # Consumer product. CONSUMER_GOOD = 6 # Other types of entities. OTHER = 7 # Phone number. # # The metadata lists the phone number (formatted according to local # convention), plus whichever additional elements appear in the text: # # * `number` - The actual number, broken down into sections according to # local convention. # * `national_prefix` - Country code, if detected. # * `area_code` - Region or area code, if detected. # * `extension` - Phone extension (to be dialed after connection), if # detected. PHONE_NUMBER = 9 # Address. # # The metadata identifies the street number and locality plus whichever # additional elements appear in the text: # # * `street_number` - Street number. # * `locality` - City or town. # * `street_name` - Street/route name, if detected. # * `postal_code` - Postal code, if detected. # * `country` - Country, if detected. # * `broad_region` - Administrative area, such as the state, if detected. # * `narrow_region` - Smaller administrative area, such as county, if # detected. # * `sublocality` - Used in Asian addresses to demark a district within a # city, if detected. ADDRESS = 10 # Date. # # The metadata identifies the components of the date: # # * `year` - Four digit year, if detected. # * `month` - Two digit month number, if detected. # * `day` - Two digit day number, if detected. DATE = 11 # Number. # # The metadata is the number itself. NUMBER = 12 # Price. # # The metadata identifies the `value` and `currency`. PRICE = 13 end end |