Class: Google::Apis::LanguageV1beta1::PartOfSpeech

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PartOfSpeech

Returns a new instance of PartOfSpeech



539
540
541
# File 'generated/google/apis/language_v1beta1/classes.rb', line 539

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aspectString

The grammatical aspect. Corresponds to the JSON property aspect

Returns:

  • (String)


482
483
484
# File 'generated/google/apis/language_v1beta1/classes.rb', line 482

def aspect
  @aspect
end

#caseString

The grammatical case. Corresponds to the JSON property case

Returns:

  • (String)


487
488
489
# File 'generated/google/apis/language_v1beta1/classes.rb', line 487

def case
  @case
end

#formString

The grammatical form. Corresponds to the JSON property form

Returns:

  • (String)


492
493
494
# File 'generated/google/apis/language_v1beta1/classes.rb', line 492

def form
  @form
end

#genderString

The grammatical gender. Corresponds to the JSON property gender

Returns:

  • (String)


497
498
499
# File 'generated/google/apis/language_v1beta1/classes.rb', line 497

def gender
  @gender
end

#moodString

The grammatical mood. Corresponds to the JSON property mood

Returns:

  • (String)


502
503
504
# File 'generated/google/apis/language_v1beta1/classes.rb', line 502

def mood
  @mood
end

#numberString

The grammatical number. Corresponds to the JSON property number

Returns:

  • (String)


507
508
509
# File 'generated/google/apis/language_v1beta1/classes.rb', line 507

def number
  @number
end

#personString

The grammatical person. Corresponds to the JSON property person

Returns:

  • (String)


512
513
514
# File 'generated/google/apis/language_v1beta1/classes.rb', line 512

def person
  @person
end

#properString

The grammatical properness. Corresponds to the JSON property proper

Returns:

  • (String)


517
518
519
# File 'generated/google/apis/language_v1beta1/classes.rb', line 517

def proper
  @proper
end

#reciprocityString

The grammatical reciprocity. Corresponds to the JSON property reciprocity

Returns:

  • (String)


522
523
524
# File 'generated/google/apis/language_v1beta1/classes.rb', line 522

def reciprocity
  @reciprocity
end

#tagString

The part of speech tag. Corresponds to the JSON property tag

Returns:

  • (String)


527
528
529
# File 'generated/google/apis/language_v1beta1/classes.rb', line 527

def tag
  @tag
end

#tenseString

The grammatical tense. Corresponds to the JSON property tense

Returns:

  • (String)


532
533
534
# File 'generated/google/apis/language_v1beta1/classes.rb', line 532

def tense
  @tense
end

#voiceString

The grammatical voice. Corresponds to the JSON property voice

Returns:

  • (String)


537
538
539
# File 'generated/google/apis/language_v1beta1/classes.rb', line 537

def voice
  @voice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



544
545
546
547
548
549
550
551
552
553
554
555
556
557
# File 'generated/google/apis/language_v1beta1/classes.rb', line 544

def update!(**args)
  @aspect = args[:aspect] if args.key?(:aspect)
  @case = args[:case] if args.key?(:case)
  @form = args[:form] if args.key?(:form)
  @gender = args[:gender] if args.key?(:gender)
  @mood = args[:mood] if args.key?(:mood)
  @number = args[:number] if args.key?(:number)
  @person = args[:person] if args.key?(:person)
  @proper = args[:proper] if args.key?(:proper)
  @reciprocity = args[:reciprocity] if args.key?(:reciprocity)
  @tag = args[:tag] if args.key?(:tag)
  @tense = args[:tense] if args.key?(:tense)
  @voice = args[:voice] if args.key?(:voice)
end