Reference documentation and code samples for the Natural Language V1beta2 API class Google::Cloud::Language::V1beta2::PartOfSpeech.
Represents part of speech information for a token.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#aspect
def aspect() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Aspect
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Aspect) — The grammatical aspect.
#aspect=
def aspect=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Aspect
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Aspect) — The grammatical aspect.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Aspect) — The grammatical aspect.
#case
def case() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Case
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Case) — The grammatical case.
#case=
def case=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Case
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Case) — The grammatical case.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Case) — The grammatical case.
#form
def form() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Form
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Form) — The grammatical form.
#form=
def form=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Form
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Form) — The grammatical form.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Form) — The grammatical form.
#gender
def gender() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Gender
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Gender) — The grammatical gender.
#gender=
def gender=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Gender
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Gender) — The grammatical gender.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Gender) — The grammatical gender.
#mood
def mood() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Mood
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Mood) — The grammatical mood.
#mood=
def mood=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Mood
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Mood) — The grammatical mood.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Mood) — The grammatical mood.
#number
def number() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Number
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Number) — The grammatical number.
#number=
def number=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Number
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Number) — The grammatical number.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Number) — The grammatical number.
#person
def person() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Person
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Person) — The grammatical person.
#person=
def person=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Person
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Person) — The grammatical person.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Person) — The grammatical person.
#proper
def proper() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Proper
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Proper) — The grammatical properness.
#proper=
def proper=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Proper
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Proper) — The grammatical properness.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Proper) — The grammatical properness.
#reciprocity
def reciprocity() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Reciprocity
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Reciprocity) — The grammatical reciprocity.
#reciprocity=
def reciprocity=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Reciprocity
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Reciprocity) — The grammatical reciprocity.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Reciprocity) — The grammatical reciprocity.
#tag
def tag() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Tag
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Tag) — The part of speech tag.
#tag=
def tag=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Tag
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Tag) — The part of speech tag.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Tag) — The part of speech tag.
#tense
def tense() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Tense
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Tense) — The grammatical tense.
#tense=
def tense=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Tense
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Tense) — The grammatical tense.
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Tense) — The grammatical tense.
#voice
def voice() -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Voice
    Returns
    
  - (::Google::Cloud::Language::V1beta2::PartOfSpeech::Voice) — The grammatical voice.
#voice=
def voice=(value) -> ::Google::Cloud::Language::V1beta2::PartOfSpeech::Voice
    Parameter
    
  - value (::Google::Cloud::Language::V1beta2::PartOfSpeech::Voice) — The grammatical voice.
    Returns
    
- (::Google::Cloud::Language::V1beta2::PartOfSpeech::Voice) — The grammatical voice.