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
-
#aspect ⇒ String
The grammatical aspect.
-
#case ⇒ String
The grammatical case.
-
#form ⇒ String
The grammatical form.
-
#gender ⇒ String
The grammatical gender.
-
#mood ⇒ String
The grammatical mood.
-
#number ⇒ String
The grammatical number.
-
#person ⇒ String
The grammatical person.
-
#proper ⇒ String
The grammatical properness.
-
#reciprocity ⇒ String
The grammatical reciprocity.
-
#tag ⇒ String
The part of speech tag.
-
#tense ⇒ String
The grammatical tense.
-
#voice ⇒ String
The grammatical voice.
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
423 424 425 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 423 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aspect ⇒ String
The grammatical aspect.
Corresponds to the JSON property aspect
386 387 388 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 386 def aspect @aspect end |
#case ⇒ String
The grammatical case.
Corresponds to the JSON property case
416 417 418 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 416 def case @case end |
#form ⇒ String
The grammatical form.
Corresponds to the JSON property form
371 372 373 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 371 def form @form end |
#gender ⇒ String
The grammatical gender.
Corresponds to the JSON property gender
401 402 403 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 401 def gender @gender end |
#mood ⇒ String
The grammatical mood.
Corresponds to the JSON property mood
391 392 393 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 391 def mood @mood end |
#number ⇒ String
The grammatical number.
Corresponds to the JSON property number
376 377 378 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 376 def number @number end |
#person ⇒ String
The grammatical person.
Corresponds to the JSON property person
406 407 408 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 406 def person @person end |
#proper ⇒ String
The grammatical properness.
Corresponds to the JSON property proper
411 412 413 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 411 def proper @proper end |
#reciprocity ⇒ String
The grammatical reciprocity.
Corresponds to the JSON property reciprocity
366 367 368 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 366 def reciprocity @reciprocity end |
#tag ⇒ String
The part of speech tag.
Corresponds to the JSON property tag
396 397 398 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 396 def tag @tag end |
#tense ⇒ String
The grammatical tense.
Corresponds to the JSON property tense
421 422 423 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 421 def tense @tense end |
#voice ⇒ String
The grammatical voice.
Corresponds to the JSON property voice
381 382 383 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 381 def voice @voice end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
428 429 430 431 432 433 434 435 436 437 438 439 440 441 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 428 def update!(**args) @reciprocity = args[:reciprocity] if args.key?(:reciprocity) @form = args[:form] if args.key?(:form) @number = args[:number] if args.key?(:number) @voice = args[:voice] if args.key?(:voice) @aspect = args[:aspect] if args.key?(:aspect) @mood = args[:mood] if args.key?(:mood) @tag = args[:tag] if args.key?(:tag) @gender = args[:gender] if args.key?(:gender) @person = args[:person] if args.key?(:person) @proper = args[:proper] if args.key?(:proper) @case = args[:case] if args.key?(:case) @tense = args[:tense] if args.key?(:tense) end |