class Google::Apis::LanguageV1beta2::PartOfSpeech
Represents part of speech information for a token.
Attributes
The grammatical aspect. Corresponds to the JSON property `aspect` @return [String]
The grammatical case. Corresponds to the JSON property `case` @return [String]
The grammatical form. Corresponds to the JSON property `form` @return [String]
The grammatical gender. Corresponds to the JSON property `gender` @return [String]
The grammatical mood. Corresponds to the JSON property `mood` @return [String]
The grammatical number. Corresponds to the JSON property `number` @return [String]
The grammatical person. Corresponds to the JSON property `person` @return [String]
The grammatical properness. Corresponds to the JSON property `proper` @return [String]
The grammatical reciprocity. Corresponds to the JSON property `reciprocity` @return [String]
The part of speech tag. Corresponds to the JSON property `tag` @return [String]
The grammatical tense. Corresponds to the JSON property `tense` @return [String]
The grammatical voice. Corresponds to the JSON property `voice` @return [String]
Public Class Methods
# File lib/google/apis/language_v1beta2/classes.rb, line 704 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/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