Class: Xberg::ChunkMetadata

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChunkMetadata

Returns a new instance of ChunkMetadata.

Parameters:

  • 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])


196
# File 'sig/types.rbs', line 196

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_endInteger (readonly)

Returns the value of attribute byte_end.

Returns:

  • (Integer)


183
184
185
# File 'sig/types.rbs', line 183

def byte_end
  @byte_end
end

#byte_startInteger (readonly)

Returns the value of attribute byte_start.

Returns:

  • (Integer)


182
183
184
# File 'sig/types.rbs', line 182

def byte_start
  @byte_start
end

#chunk_indexInteger (readonly)

Returns the value of attribute chunk_index.

Returns:

  • (Integer)


185
186
187
# File 'sig/types.rbs', line 185

def chunk_index
  @chunk_index
end

#classificationsArray[ClassificationLabel] (readonly)

Returns the value of attribute classifications.

Returns:



194
195
196
# File 'sig/types.rbs', line 194

def classifications
  @classifications
end

#first_pageInteger? (readonly)

Returns the value of attribute first_page.

Returns:

  • (Integer, nil)


187
188
189
# File 'sig/types.rbs', line 187

def first_page
  @first_page
end

#heading_contextHeadingContext? (readonly)

Returns the value of attribute heading_context.

Returns:



189
190
191
# File 'sig/types.rbs', line 189

def heading_context
  @heading_context
end

#heading_pathArray[String] (readonly)

Returns the value of attribute heading_path.

Returns:

  • (Array[String])


190
191
192
# File 'sig/types.rbs', line 190

def heading_path
  @heading_path
end

#image_indicesArray[Integer] (readonly)

Returns the value of attribute image_indices.

Returns:

  • (Array[Integer])


191
192
193
# File 'sig/types.rbs', line 191

def image_indices
  @image_indices
end

#last_pageInteger? (readonly)

Returns the value of attribute last_page.

Returns:

  • (Integer, nil)


188
189
190
# File 'sig/types.rbs', line 188

def last_page
  @last_page
end

#node_idsArray[String] (readonly)

Returns the value of attribute node_ids.

Returns:

  • (Array[String])


192
193
194
# File 'sig/types.rbs', line 192

def node_ids
  @node_ids
end

#page_spansArray[PageSpan] (readonly)

Returns the value of attribute page_spans.

Returns:



193
194
195
# File 'sig/types.rbs', line 193

def page_spans
  @page_spans
end

#token_countInteger? (readonly)

Returns the value of attribute token_count.

Returns:

  • (Integer, nil)


184
185
186
# File 'sig/types.rbs', line 184

def token_count
  @token_count
end

#total_chunksInteger (readonly)

Returns the value of attribute total_chunks.

Returns:

  • (Integer)


186
187
188
# File 'sig/types.rbs', line 186

def total_chunks
  @total_chunks
end