class Google::Apis::LanguageV1::AnnotateTextRequest
The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.
Attributes
document[RW]
################################################################ # Represents the input to API methods. Corresponds to the JSON property `document` @return [Google::Apis::LanguageV1::Document]
encoding_type[RW]
The encoding type used by the API to calculate offsets. Corresponds to the JSON property `encodingType` @return [String]
features[RW]
All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input. Corresponds to the JSON property `features` @return [Google::Apis::LanguageV1::Features]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/language_v1/classes.rb, line 271 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/language_v1/classes.rb, line 276 def update!(**args) @document = args[:document] if args.key?(:document) @encoding_type = args[:encoding_type] if args.key?(:encoding_type) @features = args[:features] if args.key?(:features) end