Google AutoML v1 API - Class TextSegment (3.3.0)

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

Reference documentation and code samples for the Google AutoML v1 API class TextSegment.

A contiguous part of a text (string), assuming it has an UTF-8 NFC encoding.

Inheritance

object > TextSegment

Namespace

Google.Cloud.AutoML.V1

Assembly

Google.Cloud.AutoML.V1.dll

Constructors

TextSegment()

public TextSegment()

TextSegment(TextSegment)

public TextSegment(TextSegment other)
Parameter
Name Description
other TextSegment

Properties

Content

public string Content { get; set; }

Output only. The content of the TextSegment.

Property Value
Type Description
string

EndOffset

public long EndOffset { get; set; }

Required. Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text). The character at the end_offset is NOT included in the text segment.

Property Value
Type Description
long

StartOffset

public long StartOffset { get; set; }

Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).

Property Value
Type Description
long