Class: Google::Apis::LanguageV1beta2::PartOfSpeech

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/language_v1beta2/classes.rb,
generated/google/apis/language_v1beta2/representations.rb,
generated/google/apis/language_v1beta2/representations.rb

Overview

Represents part of speech information for a token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PartOfSpeech

Returns a new instance of PartOfSpeech.



704
705
706
# File 'generated/google/apis/language_v1beta2/classes.rb', line 704

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

Instance Attribute Details

#aspectString

The grammatical aspect. Corresponds to the JSON property aspect

Returns:

  • (String)


647
648
649
# File 'generated/google/apis/language_v1beta2/classes.rb', line 647

def aspect
  @aspect
end

#caseString

The grammatical case. Corresponds to the JSON property case

Returns:

  • (String)


652
653
654
# File 'generated/google/apis/language_v1beta2/classes.rb', line 652

def case
  @case
end

#formString

The grammatical form. Corresponds to the JSON property form

Returns:

  • (String)


657
658
659
# File 'generated/google/apis/language_v1beta2/classes.rb', line 657

def form
  @form
end

#genderString

The grammatical gender. Corresponds to the JSON property gender

Returns:

  • (String)


662
663
664
# File 'generated/google/apis/language_v1beta2/classes.rb', line 662

def gender
  @gender
end

#moodString

The grammatical mood. Corresponds to the JSON property mood

Returns:

  • (String)


667
668
669
# File 'generated/google/apis/language_v1beta2/classes.rb', line 667

def mood
  @mood
end

#numberString

The grammatical number. Corresponds to the JSON property number

Returns:

  • (String)


672
673
674
# File 'generated/google/apis/language_v1beta2/classes.rb', line 672

def number
  @number
end

#personString

The grammatical person. Corresponds to the JSON property person

Returns:

  • (String)


677
678
679
# File 'generated/google/apis/language_v1beta2/classes.rb', line 677

def person
  @person
end

#properString

The grammatical properness. Corresponds to the JSON property proper

Returns:

  • (String)


682
683
684
# File 'generated/google/apis/language_v1beta2/classes.rb', line 682

def proper
  @proper
end

#reciprocityString

The grammatical reciprocity. Corresponds to the JSON property reciprocity

Returns:

  • (String)


687
688
689
# File 'generated/google/apis/language_v1beta2/classes.rb', line 687

def reciprocity
  @reciprocity
end

#tagString

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

Returns:

  • (String)


692
693
694
# File 'generated/google/apis/language_v1beta2/classes.rb', line 692

def tag
  @tag
end

#tenseString

The grammatical tense. Corresponds to the JSON property tense

Returns:

  • (String)


697
698
699
# File 'generated/google/apis/language_v1beta2/classes.rb', line 697

def tense
  @tense
end

#voiceString

The grammatical voice. Corresponds to the JSON property voice

Returns:

  • (String)


702
703
704
# File 'generated/google/apis/language_v1beta2/classes.rb', line 702

def voice
  @voice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



709
710
711
712
713
714
715
716
717
718
719
720
721
722
# File 'generated/google/apis/language_v1beta2/classes.rb', line 709

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