Class: Google::Apis::LanguageV1beta1::PartOfSpeech

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#aspectString

The grammatical aspect. Corresponds to the JSON property aspect

Returns:

  • (String)


72
73
74
# File 'generated/google/apis/language_v1beta1/classes.rb', line 72

def aspect
  @aspect
end

#caseString

The grammatical case. Corresponds to the JSON property case

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/language_v1beta1/classes.rb', line 42

def case
  @case
end

#formString

The grammatical form. Corresponds to the JSON property form

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/language_v1beta1/classes.rb', line 57

def form
  @form
end

#genderString

The grammatical gender. Corresponds to the JSON property gender

Returns:

  • (String)


87
88
89
# File 'generated/google/apis/language_v1beta1/classes.rb', line 87

def gender
  @gender
end

#moodString

The grammatical mood. Corresponds to the JSON property mood

Returns:

  • (String)


77
78
79
# File 'generated/google/apis/language_v1beta1/classes.rb', line 77

def mood
  @mood
end

#numberString

The grammatical number. Corresponds to the JSON property number

Returns:

  • (String)


62
63
64
# File 'generated/google/apis/language_v1beta1/classes.rb', line 62

def number
  @number
end

#personString

The grammatical person. Corresponds to the JSON property person

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/language_v1beta1/classes.rb', line 32

def person
  @person
end

#properString

The grammatical properness. Corresponds to the JSON property proper

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/language_v1beta1/classes.rb', line 37

def proper
  @proper
end

#reciprocityString

The grammatical reciprocity. Corresponds to the JSON property reciprocity

Returns:

  • (String)


52
53
54
# File 'generated/google/apis/language_v1beta1/classes.rb', line 52

def reciprocity
  @reciprocity
end

#tagString

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

Returns:

  • (String)


82
83
84
# File 'generated/google/apis/language_v1beta1/classes.rb', line 82

def tag
  @tag
end

#tenseString

The grammatical tense. Corresponds to the JSON property tense

Returns:

  • (String)


47
48
49
# File 'generated/google/apis/language_v1beta1/classes.rb', line 47

def tense
  @tense
end

#voiceString

The grammatical voice. Corresponds to the JSON property voice

Returns:

  • (String)


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