Class: Xberg::ChunkMetadata
- Inherits:
-
Object
- Object
- Xberg::ChunkMetadata
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#byte_end ⇒ Integer
readonly
Returns the value of attribute byte_end.
-
#byte_start ⇒ Integer
readonly
Returns the value of attribute byte_start.
-
#chunk_index ⇒ Integer
readonly
Returns the value of attribute chunk_index.
-
#classifications ⇒ Array[ClassificationLabel]
readonly
Returns the value of attribute classifications.
-
#first_page ⇒ Integer
readonly
Returns the value of attribute first_page.
-
#heading_context ⇒ HeadingContext
readonly
Returns the value of attribute heading_context.
-
#heading_path ⇒ Array[String]
readonly
Returns the value of attribute heading_path.
-
#image_indices ⇒ Array[Integer]
readonly
Returns the value of attribute image_indices.
-
#last_page ⇒ Integer
readonly
Returns the value of attribute last_page.
-
#node_ids ⇒ Array[String]
readonly
Returns the value of attribute node_ids.
-
#page_spans ⇒ Array[PageSpan]
readonly
Returns the value of attribute page_spans.
-
#token_count ⇒ Integer
readonly
Returns the value of attribute token_count.
-
#total_chunks ⇒ Integer
readonly
Returns the value of attribute total_chunks.
Instance Method Summary collapse
-
#initialize ⇒ ChunkMetadata
constructor
A new instance of ChunkMetadata.
Constructor Details
#initialize ⇒ ChunkMetadata
Returns a new instance of ChunkMetadata.
1057 |
# File 'sig/types.rbs', line 1057
def initialize: (byte_start: Integer, byte_end: Integer, ?token_count: Integer, chunk_index: Integer, total_chunks: Integer, ?first_page: Integer, ?last_page: Integer, ?heading_context: HeadingContext, heading_path: Array[String], image_indices: Array[Integer], node_ids: Array[String], page_spans: Array[PageSpan], classifications: Array[ClassificationLabel]) -> void
|
Instance Attribute Details
#byte_end ⇒ Integer (readonly)
Returns the value of attribute byte_end.
1044 1045 1046 |
# File 'sig/types.rbs', line 1044 def byte_end @byte_end end |
#byte_start ⇒ Integer (readonly)
Returns the value of attribute byte_start.
1043 1044 1045 |
# File 'sig/types.rbs', line 1043 def byte_start @byte_start end |
#chunk_index ⇒ Integer (readonly)
Returns the value of attribute chunk_index.
1046 1047 1048 |
# File 'sig/types.rbs', line 1046 def chunk_index @chunk_index end |
#classifications ⇒ Array[ClassificationLabel] (readonly)
Returns the value of attribute classifications.
1055 1056 1057 |
# File 'sig/types.rbs', line 1055 def classifications @classifications end |
#first_page ⇒ Integer (readonly)
Returns the value of attribute first_page.
1048 1049 1050 |
# File 'sig/types.rbs', line 1048 def first_page @first_page end |
#heading_context ⇒ HeadingContext (readonly)
Returns the value of attribute heading_context.
1050 1051 1052 |
# File 'sig/types.rbs', line 1050 def heading_context @heading_context end |
#heading_path ⇒ Array[String] (readonly)
Returns the value of attribute heading_path.
1051 1052 1053 |
# File 'sig/types.rbs', line 1051 def heading_path @heading_path end |
#image_indices ⇒ Array[Integer] (readonly)
Returns the value of attribute image_indices.
1052 1053 1054 |
# File 'sig/types.rbs', line 1052 def image_indices @image_indices end |
#last_page ⇒ Integer (readonly)
Returns the value of attribute last_page.
1049 1050 1051 |
# File 'sig/types.rbs', line 1049 def last_page @last_page end |
#node_ids ⇒ Array[String] (readonly)
Returns the value of attribute node_ids.
1053 1054 1055 |
# File 'sig/types.rbs', line 1053 def node_ids @node_ids end |
#page_spans ⇒ Array[PageSpan] (readonly)
Returns the value of attribute page_spans.
1054 1055 1056 |
# File 'sig/types.rbs', line 1054 def page_spans @page_spans end |
#token_count ⇒ Integer (readonly)
Returns the value of attribute token_count.
1045 1046 1047 |
# File 'sig/types.rbs', line 1045 def token_count @token_count end |
#total_chunks ⇒ Integer (readonly)
Returns the value of attribute total_chunks.
1047 1048 1049 |
# File 'sig/types.rbs', line 1047 def total_chunks @total_chunks end |