Class: Google::Apis::LanguageV1beta2::PartOfSpeech
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::LanguageV1beta2::PartOfSpeech
 
 
- 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
- 
  
    
      #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
      700 701 702  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 700 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#aspect ⇒ String
The grammatical aspect.
Corresponds to the JSON property aspect
      643 644 645  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 643 def aspect @aspect end  | 
  
#case ⇒ String
The grammatical case.
Corresponds to the JSON property case
      648 649 650  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 648 def case @case end  | 
  
#form ⇒ String
The grammatical form.
Corresponds to the JSON property form
      653 654 655  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 653 def form @form end  | 
  
#gender ⇒ String
The grammatical gender.
Corresponds to the JSON property gender
      658 659 660  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 658 def gender @gender end  | 
  
#mood ⇒ String
The grammatical mood.
Corresponds to the JSON property mood
      663 664 665  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 663 def mood @mood end  | 
  
#number ⇒ String
The grammatical number.
Corresponds to the JSON property number
      668 669 670  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 668 def number @number end  | 
  
#person ⇒ String
The grammatical person.
Corresponds to the JSON property person
      673 674 675  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 673 def person @person end  | 
  
#proper ⇒ String
The grammatical properness.
Corresponds to the JSON property proper
      678 679 680  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 678 def proper @proper end  | 
  
#reciprocity ⇒ String
The grammatical reciprocity.
Corresponds to the JSON property reciprocity
      683 684 685  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 683 def reciprocity @reciprocity end  | 
  
#tag ⇒ String
The part of speech tag.
Corresponds to the JSON property tag
      688 689 690  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 688 def tag @tag end  | 
  
#tense ⇒ String
The grammatical tense.
Corresponds to the JSON property tense
      693 694 695  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 693 def tense @tense end  | 
  
#voice ⇒ String
The grammatical voice.
Corresponds to the JSON property voice
      698 699 700  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 698 def voice @voice end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      705 706 707 708 709 710 711 712 713 714 715 716 717 718  | 
    
      # File 'generated/google/apis/language_v1beta2/classes.rb', line 705 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  |