Class: Google::Cloud::Language::V1beta2::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb

Overview

Represents the smallest syntactic building block of the text.

Instance Attribute Summary collapse

Instance Attribute Details

#dependency_edge ⇒ Google::Cloud::Language::V1beta2::DependencyEdge

Returns Dependency tree parse for this token.

Returns:



145
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 145

class Token; end

#lemma ⇒ String

Returns Lemma of the token.

Returns:

  • (String) —

    Lemma of the token.



145
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 145

class Token; end

#part_of_speech ⇒ Google::Cloud::Language::V1beta2::PartOfSpeech

Returns Parts of speech tag for this token.

Returns:



145
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 145

class Token; end

#text ⇒ Google::Cloud::Language::V1beta2::TextSpan

Returns The token text.

Returns:



145
# File 'lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb', line 145

class Token; end