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.
632 633 634 |
# File 'lib/google/cloud/language/annotation.rb', line 632 def language @language end |
#sentences ⇒ Array<Sentence> (readonly)
The sentences returned by syntax analysis.
632 633 634 |
# File 'lib/google/cloud/language/annotation.rb', line 632 def sentences @sentences end |
#tokens ⇒ Object (readonly)
Returns the value of attribute tokens
633 634 635 |
# File 'lib/google/cloud/language/annotation.rb', line 633 def tokens @tokens end |