Class: Google::Cloud::Language::V1::Token

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/language/v1/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::V1::DependencyEdge

Returns Dependency tree parse for this token.

Returns:



220
221
222
223
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 220

class Token
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#lemma::String

Returns Lemma of the token.

Returns:

  • (::String)

    Lemma of the token.



220
221
222
223
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 220

class Token
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#part_of_speech::Google::Cloud::Language::V1::PartOfSpeech

Returns Parts of speech tag for this token.

Returns:



220
221
222
223
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 220

class Token
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#text::Google::Cloud::Language::V1::TextSpan

Returns The token text.

Returns:



220
221
222
223
# File 'proto_docs/google/cloud/language/v1/language_service.rb', line 220

class Token
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end