public sealed class Token : IMessage<Token>, IEquatable<Token>, IDeepCloneable<Token>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Natural Language v1 API class Token.
Represents the smallest syntactic building block of the text.
Namespace
Google.Cloud.Language.V1Assembly
Google.Cloud.Language.V1.dll
Constructors
Token()
public Token()
Token(Token)
public Token(Token other)
Parameter | |
---|---|
Name | Description |
other |
Token |
Properties
DependencyEdge
public DependencyEdge DependencyEdge { get; set; }
Dependency tree parse for this token.
Property Value | |
---|---|
Type | Description |
DependencyEdge |
Lemma
public string Lemma { get; set; }
Lemma of the token.
Property Value | |
---|---|
Type | Description |
string |
PartOfSpeech
public PartOfSpeech PartOfSpeech { get; set; }
Parts of speech tag for this token.
Property Value | |
---|---|
Type | Description |
PartOfSpeech |
Text
public TextSpan Text { get; set; }
The token text.
Property Value | |
---|---|
Type | Description |
TextSpan |