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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/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.



1054
1055
1056
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1054

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

Instance Attribute Details

#aspectString

The grammatical aspect. Corresponds to the JSON property aspect

Returns:

  • (String)


997
998
999
# File 'lib/google/apis/language_v1beta2/classes.rb', line 997

def aspect
  @aspect
end

#caseString

The grammatical case. Corresponds to the JSON property case

Returns:

  • (String)


1002
1003
1004
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1002

def case
  @case
end

#formString

The grammatical form. Corresponds to the JSON property form

Returns:

  • (String)


1007
1008
1009
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1007

def form
  @form
end

#genderString

The grammatical gender. Corresponds to the JSON property gender

Returns:

  • (String)


1012
1013
1014
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1012

def gender
  @gender
end

#moodString

The grammatical mood. Corresponds to the JSON property mood

Returns:

  • (String)


1017
1018
1019
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1017

def mood
  @mood
end

#numberString

The grammatical number. Corresponds to the JSON property number

Returns:

  • (String)


1022
1023
1024
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1022

def number
  @number
end

#personString

The grammatical person. Corresponds to the JSON property person

Returns:

  • (String)


1027
1028
1029
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1027

def person
  @person
end

#properString

The grammatical properness. Corresponds to the JSON property proper

Returns:

  • (String)


1032
1033
1034
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1032

def proper
  @proper
end

#reciprocityString

The grammatical reciprocity. Corresponds to the JSON property reciprocity

Returns:

  • (String)


1037
1038
1039
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1037

def reciprocity
  @reciprocity
end

#tagString

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

Returns:

  • (String)


1042
1043
1044
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1042

def tag
  @tag
end

#tenseString

The grammatical tense. Corresponds to the JSON property tense

Returns:

  • (String)


1047
1048
1049
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1047

def tense
  @tense
end

#voiceString

The grammatical voice. Corresponds to the JSON property voice

Returns:

  • (String)


1052
1053
1054
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1052

def voice
  @voice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1059

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