Cloud Natural Language v2 API - Class TextSpan (1.0.0-beta05)

public sealed class TextSpan : IMessage<TextSpan>, IEquatable<TextSpan>, IDeepCloneable<TextSpan>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Natural Language v2 API class TextSpan.

Represents a text span in the input document.

Inheritance

object > TextSpan

Namespace

Google.Cloud.Language.V2

Assembly

Google.Cloud.Language.V2.dll

Constructors

TextSpan()

public TextSpan()

TextSpan(TextSpan)

public TextSpan(TextSpan other)
Parameter
Name Description
other TextSpan

Properties

BeginOffset

public int BeginOffset { get; set; }

The API calculates the beginning offset of the content in the original document according to the [EncodingType][google.cloud.language.v2.EncodingType] specified in the API request.

Property Value
Type Description
int

Content

public string Content { get; set; }

The content of the text span, which is a substring of the document.

Property Value
Type Description
string