Reference documentation and code samples for the Natural Language V1 API class Google::Cloud::Language::V1::AnalyzeSyntaxResponse.
The syntax analysis response message.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#language
def language() -> ::String
Returns
- (::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. See Document.language field for more details.
#language=
def language=(value) -> ::String
Parameter
- value (::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. See Document.language field for more details.
Returns
- (::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. See Document.language field for more details.
#sentences
def sentences() -> ::Array<::Google::Cloud::Language::V1::Sentence>
Returns
- (::Array<::Google::Cloud::Language::V1::Sentence>) — Sentences in the input document.
#sentences=
def sentences=(value) -> ::Array<::Google::Cloud::Language::V1::Sentence>
Parameter
- value (::Array<::Google::Cloud::Language::V1::Sentence>) — Sentences in the input document.
Returns
- (::Array<::Google::Cloud::Language::V1::Sentence>) — Sentences in the input document.
#tokens
def tokens() -> ::Array<::Google::Cloud::Language::V1::Token>
Returns
- (::Array<::Google::Cloud::Language::V1::Token>) — Tokens, along with their syntactic information, in the input document.
#tokens=
def tokens=(value) -> ::Array<::Google::Cloud::Language::V1::Token>
Parameter
- value (::Array<::Google::Cloud::Language::V1::Token>) — Tokens, along with their syntactic information, in the input document.
Returns
- (::Array<::Google::Cloud::Language::V1::Token>) — Tokens, along with their syntactic information, in the input document.