Class: Google::Cloud::Language::V1beta2::Token
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V1beta2::Token
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v1beta2/language_service.rb
Overview
Represents the smallest syntactic building block of the text.
Instance Attribute Summary collapse
-
#dependency_edge ⇒ ::Google::Cloud::Language::V1beta2::DependencyEdge
Dependency tree parse for this token.
-
#lemma ⇒ ::String
Lemma of the token.
-
#part_of_speech ⇒ ::Google::Cloud::Language::V1beta2::PartOfSpeech
Parts of speech tag for this token.
-
#text ⇒ ::Google::Cloud::Language::V1beta2::TextSpan
The token text.
Instance Attribute Details
#dependency_edge ⇒ ::Google::Cloud::Language::V1beta2::DependencyEdge
Returns Dependency tree parse for this token.
242 243 244 245 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 242 class Token include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#lemma ⇒ ::String
Returns Lemma of the token.
242 243 244 245 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 242 class Token include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#part_of_speech ⇒ ::Google::Cloud::Language::V1beta2::PartOfSpeech
Returns Parts of speech tag for this token.
242 243 244 245 |
# File 'proto_docs/google/cloud/language/v1beta2/language_service.rb', line 242 class Token include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |