Google Cloud Natural Language v1 API - Class Token (3.2.0)

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.

Inheritance

Object > Token

Namespace

Google.Cloud.Language.V1

Assembly

Google.Cloud.Language.V1.dll

Constructors

Token()

public Token()

Token(Token)

public Token(Token other)
Parameter
NameDescription
otherToken

Properties

DependencyEdge

public DependencyEdge DependencyEdge { get; set; }

Dependency tree parse for this token.

Property Value
TypeDescription
DependencyEdge

Lemma

public string Lemma { get; set; }

Lemma of the token.

Property Value
TypeDescription
String

PartOfSpeech

public PartOfSpeech PartOfSpeech { get; set; }

Parts of speech tag for this token.

Property Value
TypeDescription
PartOfSpeech

Text

public TextSpan Text { get; set; }

The token text.

Property Value
TypeDescription
TextSpan