Module: Google::Cloud::AutoML::V1beta1::Document::Layout::TextSegmentType
- Defined in:
- lib/google/cloud/automl/v1beta1/doc/google/cloud/automl/v1beta1/data_items.rb
Overview
The type of TextSegment in the context of the original document.
Constant Summary collapse
- TEXT_SEGMENT_TYPE_UNSPECIFIED =
Should not be used.
0
- TOKEN =
The text segment is a token. e.g. word.
1
- PARAGRAPH =
The text segment is a paragraph.
2
- FORM_FIELD =
The text segment is a form field.
3
- FORM_FIELD_NAME =
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.
4
- FORM_FIELD_CONTENTS =
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.
5
- TABLE =
The text segment is a whole table, including headers, and all rows.
6
- TABLE_HEADER =
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.
7
- TABLE_ROW =
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.
8
- TABLE_CELL =
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.
9