Class: Google::Apis::LanguageV1beta1::PartOfSpeech
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta1::PartOfSpeech
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/language_v1beta1/classes.rb,
generated/google/apis/language_v1beta1/representations.rb,
generated/google/apis/language_v1beta1/representations.rb
Overview
Represents part of speech information for a token.
Instance Attribute Summary collapse
-
#tag ⇒ String
The part of speech tag.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PartOfSpeech
constructor
A new instance of PartOfSpeech.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PartOfSpeech
Returns a new instance of PartOfSpeech.
390 391 392 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 390 def initialize(**args) update!(**args) end |
Instance Attribute Details
#tag ⇒ String
The part of speech tag.
Corresponds to the JSON property tag
388 389 390 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 388 def tag @tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
395 396 397 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 395 def update!(**args) @tag = args[:tag] if args.key?(:tag) end |