Cloud AutoML V1 API - Module Google::Cloud::AutoML::V1::Document::Layout::TextSegmentType (v0.9.2)

Reference documentation and code samples for the Cloud AutoML V1 API module Google::Cloud::AutoML::V1::Document::Layout::TextSegmentType.

The type of TextSegment in the context of the original document.

Constants

TEXT_SEGMENT_TYPE_UNSPECIFIED

value: 0
Should not be used.

TOKEN

value: 1
The text segment is a token. e.g. word.

PARAGRAPH

value: 2
The text segment is a paragraph.

FORM_FIELD

value: 3
The text segment is a form field.

FORM_FIELD_NAME

value: 4
The text segment is the name part of a form field. It will be treated as child of another FORM_FIELD TextSegment if its span is subspan of another TextSegment with type FORM_FIELD.

FORM_FIELD_CONTENTS

value: 5
The text segment is the text content part of a form field. It will be treated as child of another FORM_FIELD TextSegment if its span is subspan of another TextSegment with type FORM_FIELD.

TABLE

value: 6
The text segment is a whole table, including headers, and all rows.

TABLE_HEADER

value: 7
The text segment is a table's headers. It will be treated as child of another TABLE TextSegment if its span is subspan of another TextSegment with type TABLE.

TABLE_ROW

value: 8
The text segment is a row in table. It will be treated as child of another TABLE TextSegment if its span is subspan of another TextSegment with type TABLE.

TABLE_CELL

value: 9
The text segment is a cell in table. It will be treated as child of another TABLE_ROW TextSegment if its span is subspan of another TextSegment with type TABLE_ROW.