class Google::Apis::LanguageV1::AnalyzeSyntaxResponse

The syntax analysis response message.

Attributes

language[RW]

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. Corresponds to the JSON property `language` @return [String]

sentences[RW]

Sentences in the input document. Corresponds to the JSON property `sentences` @return [Array<Google::Apis::LanguageV1::Sentence>]

tokens[RW]

Tokens, along with their syntactic information, in the input document. Corresponds to the JSON property `tokens` @return [Array<Google::Apis::LanguageV1::Token>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/language_v1/classes.rb, line 237
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 242
def update!(**args)
  @language = args[:language] if args.key?(:language)
  @sentences = args[:sentences] if args.key?(:sentences)
  @tokens = args[:tokens] if args.key?(:tokens)
end