Class: Google::Apis::LanguageV1beta2::PartOfSpeech
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::PartOfSpeech
- 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
-
#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.
Constructor Details
#initialize(**args) ⇒ PartOfSpeech
Returns a new instance of PartOfSpeech.
1058 1059 1060 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1058 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aspect ⇒ String
The grammatical aspect.
Corresponds to the JSON property aspect
1001 1002 1003 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1001 def aspect @aspect end |
#case ⇒ String
The grammatical case.
Corresponds to the JSON property case
1006 1007 1008 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1006 def case @case end |
#form ⇒ String
The grammatical form.
Corresponds to the JSON property form
1011 1012 1013 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1011 def form @form end |
#gender ⇒ String
The grammatical gender.
Corresponds to the JSON property gender
1016 1017 1018 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1016 def gender @gender end |
#mood ⇒ String
The grammatical mood.
Corresponds to the JSON property mood
1021 1022 1023 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1021 def mood @mood end |
#number ⇒ String
The grammatical number.
Corresponds to the JSON property number
1026 1027 1028 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1026 def number @number end |
#person ⇒ String
The grammatical person.
Corresponds to the JSON property person
1031 1032 1033 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1031 def person @person end |
#proper ⇒ String
The grammatical properness.
Corresponds to the JSON property proper
1036 1037 1038 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1036 def proper @proper end |
#reciprocity ⇒ String
The grammatical reciprocity.
Corresponds to the JSON property reciprocity
1041 1042 1043 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1041 def reciprocity @reciprocity end |
#tag ⇒ String
The part of speech tag.
Corresponds to the JSON property tag
1046 1047 1048 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1046 def tag @tag end |
#tense ⇒ String
The grammatical tense.
Corresponds to the JSON property tense
1051 1052 1053 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1051 def tense @tense end |
#voice ⇒ String
The grammatical voice.
Corresponds to the JSON property voice
1056 1057 1058 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1056 def voice @voice end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1063 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 |