Class: Google::Cloud::Language::V1::AnnotateTextResponse
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1::AnnotateTextResponse
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v1/language_service.rb
Overview
The text annotations response message.
Instance Attribute Summary collapse
-
#categories ⇒ ::Array<::Google::Cloud::Language::V1::ClassificationCategory>
Categories identified in the input document.
-
#document_sentiment ⇒ ::Google::Cloud::Language::V1::Sentiment
The overall sentiment for the document.
-
#entities ⇒ ::Array<::Google::Cloud::Language::V1::Entity>
Entities, along with their semantic information, in the input document.
-
#language ⇒ ::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.
-
#moderation_categories ⇒ ::Array<::Google::Cloud::Language::V1::ClassificationCategory>
Harmful and sensitive categories identified in the input document.
-
#sentences ⇒ ::Array<::Google::Cloud::Language::V1::Sentence>
Sentences in the input document.
-
#tokens ⇒ ::Array<::Google::Cloud::Language::V1::Token>
Tokens, along with their syntactic information, in the input document.
Instance Attribute Details
#categories ⇒ ::Array<::Google::Cloud::Language::V1::ClassificationCategory>
Returns Categories identified in the input document.
1176 1177 1178 1179 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1176 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#document_sentiment ⇒ ::Google::Cloud::Language::V1::Sentiment
Returns The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
1176 1177 1178 1179 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1176 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#entities ⇒ ::Array<::Google::Cloud::Language::V1::Entity>
Returns Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
1176 1177 1178 1179 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1176 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#language ⇒ ::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.
1176 1177 1178 1179 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1176 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#moderation_categories ⇒ ::Array<::Google::Cloud::Language::V1::ClassificationCategory>
Returns Harmful and sensitive categories identified in the input document.
1176 1177 1178 1179 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1176 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#sentences ⇒ ::Array<::Google::Cloud::Language::V1::Sentence>
Returns Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
1176 1177 1178 1179 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1176 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#tokens ⇒ ::Array<::Google::Cloud::Language::V1::Token>
Returns Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
1176 1177 1178 1179 |
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 1176 class AnnotateTextResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |