Class: Google::Cloud::Language::Annotation::Syntax
- Inherits:
-
Object
- Object
- Google::Cloud::Language::Annotation::Syntax
- Defined in:
- lib/google/cloud/language/annotation.rb
Overview
Represents the result of syntax analysis.
Instance Attribute Summary collapse
-
#language ⇒ String
readonly
The language of the document (if not specified, the language is automatically detected).
-
#sentences ⇒ Array<Sentence>
readonly
The sentences returned by syntax analysis.
-
#tokens ⇒ Object
readonly
Returns the value of attribute tokens.
Instance Attribute Details
#language ⇒ String (readonly)
The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are supported.
596 597 598 |
# File 'lib/google/cloud/language/annotation.rb', line 596 def language @language end |
#sentences ⇒ Array<Sentence> (readonly)
The sentences returned by syntax analysis.
596 597 598 |
# File 'lib/google/cloud/language/annotation.rb', line 596 def sentences @sentences end |
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens.
597 598 599 |
# File 'lib/google/cloud/language/annotation.rb', line 597 def tokens @tokens end |