Natural Language V1 API - Class Google::Cloud::Language::V1::Token (v0.4.5)

Reference documentation and code samples for the Natural Language V1 API class Google::Cloud::Language::V1::Token.

Represents the smallest syntactic building block of the text.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#dependency_edge

def dependency_edge() -> ::Google::Cloud::Language::V1::DependencyEdge
Returns

#dependency_edge=

def dependency_edge=(value) -> ::Google::Cloud::Language::V1::DependencyEdge
Parameter
Returns

#lemma

def lemma() -> ::String
Returns
  • (::String) — Lemma of the token.

#lemma=

def lemma=(value) -> ::String
Parameter
  • value (::String) — Lemma of the token.
Returns
  • (::String) — Lemma of the token.

#part_of_speech

def part_of_speech() -> ::Google::Cloud::Language::V1::PartOfSpeech
Returns

#part_of_speech=

def part_of_speech=(value) -> ::Google::Cloud::Language::V1::PartOfSpeech
Parameter
Returns

#text

def text() -> ::Google::Cloud::Language::V1::TextSpan
Returns

#text=

def text=(value) -> ::Google::Cloud::Language::V1::TextSpan
Parameter
Returns