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
89 90 91 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 89 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aspect ⇒ String
The grammatical aspect.
Corresponds to the JSON property aspect
72 73 74 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 72 def aspect @aspect end |
#case ⇒ String
The grammatical case.
Corresponds to the JSON property case
42 43 44 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 42 def case @case end |
#form ⇒ String
The grammatical form.
Corresponds to the JSON property form
57 58 59 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 57 def form @form end |
#gender ⇒ String
The grammatical gender.
Corresponds to the JSON property gender
87 88 89 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 87 def gender @gender end |
#mood ⇒ String
The grammatical mood.
Corresponds to the JSON property mood
77 78 79 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 77 def mood @mood end |
#number ⇒ String
The grammatical number.
Corresponds to the JSON property number
62 63 64 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 62 def number @number end |
#person ⇒ String
The grammatical person.
Corresponds to the JSON property person
32 33 34 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 32 def person @person end |
#proper ⇒ String
The grammatical properness.
Corresponds to the JSON property proper
37 38 39 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 37 def proper @proper end |
#reciprocity ⇒ String
The grammatical reciprocity.
Corresponds to the JSON property reciprocity
52 53 54 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 52 def reciprocity @reciprocity end |
#tag ⇒ String
The part of speech tag.
Corresponds to the JSON property tag
82 83 84 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 82 def tag @tag end |
#tense ⇒ String
The grammatical tense.
Corresponds to the JSON property tense
47 48 49 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 47 def tense @tense end |
#voice ⇒ String
The grammatical voice.
Corresponds to the JSON property voice
67 68 69 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 67 def voice @voice end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'generated/google/apis/language_v1beta1/classes.rb', line 94 def update!(**args) @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) @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) end |