Class: Google::Cloud::Language::V2::AnnotateTextResponse
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V2::AnnotateTextResponse
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v2/language_service.rb
Overview
The text annotations response message.
Instance Attribute Summary collapse
-
#categories ⇒ ::Array<::Google::Cloud::Language::V2::ClassificationCategory>
Categories identified in the input document.
-
#document_sentiment ⇒ ::Google::Cloud::Language::V2::Sentiment
The overall sentiment for the document.
-
#entities ⇒ ::Array<::Google::Cloud::Language::V2::Entity>
Entities, along with their semantic information, in the input document.
-
#language_code ⇒ ::String
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.
-
#language_supported ⇒ ::Boolean
Whether the language is officially supported by all requested features.
-
#moderation_categories ⇒ ::Array<::Google::Cloud::Language::V2::ClassificationCategory>
Harmful and sensitive categories identified in the input document.
-
#sentences ⇒ ::Array<::Google::Cloud::Language::V2::Sentence>
Sentences in the input document.
Instance Attribute Details
#categories ⇒ ::Array<::Google::Cloud::Language::V2::ClassificationCategory>
Returns Categories identified in the input document.
490 491 492 493 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 490 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#document_sentiment ⇒ ::Google::Cloud::Language::V2::Sentiment
Returns The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
490 491 492 493 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 490 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#entities ⇒ ::Array<::Google::Cloud::Language::V2::Entity>
Returns Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or [AnnotateTextRequest.Features.extract_entity_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_entity_sentiment].
490 491 492 493 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 490 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#language_code ⇒ ::String
Returns The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See [Document.language][] field for more details.
490 491 492 493 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 490 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#language_supported ⇒ ::Boolean
Returns Whether the language is officially supported by all requested features. The API may still return a response when the language is not supported, but it is on a best effort basis.
490 491 492 493 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 490 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#moderation_categories ⇒ ::Array<::Google::Cloud::Language::V2::ClassificationCategory>
Returns Harmful and sensitive categories identified in the input document.
490 491 492 493 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 490 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#sentences ⇒ ::Array<::Google::Cloud::Language::V2::Sentence>
Returns Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
490 491 492 493 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 490 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |