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


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

Returns the value of attribute byte_end.

Returns:

  • (Integer)


1044
1045
1046
# File 'sig/types.rbs', line 1044

def byte_end
  @byte_end
end

#byte_startInteger (readonly)

Returns the value of attribute byte_start.

Returns:

  • (Integer)


1043
1044
1045
# File 'sig/types.rbs', line 1043

def byte_start
  @byte_start
end

#chunk_indexInteger (readonly)

Returns the value of attribute chunk_index.

Returns:

  • (Integer)


1046
1047
1048
# File 'sig/types.rbs', line 1046

def chunk_index
  @chunk_index
end

#classificationsArray[ClassificationLabel] (readonly)

Returns the value of attribute classifications.

Returns:



1055
1056
1057
# File 'sig/types.rbs', line 1055

def classifications
  @classifications
end

#first_pageInteger (readonly)

Returns the value of attribute first_page.

Returns:

  • (Integer)


1048
1049
1050
# File 'sig/types.rbs', line 1048

def first_page
  @first_page
end

#heading_contextHeadingContext (readonly)

Returns the value of attribute heading_context.

Returns:



1050
1051
1052
# File 'sig/types.rbs', line 1050

def heading_context
  @heading_context
end

#heading_pathArray[String] (readonly)

Returns the value of attribute heading_path.

Returns:

  • (Array[String])


1051
1052
1053
# File 'sig/types.rbs', line 1051

def heading_path
  @heading_path
end

#image_indicesArray[Integer] (readonly)

Returns the value of attribute image_indices.

Returns:

  • (Array[Integer])


1052
1053
1054
# File 'sig/types.rbs', line 1052

def image_indices
  @image_indices
end

#last_pageInteger (readonly)

Returns the value of attribute last_page.

Returns:

  • (Integer)


1049
1050
1051
# File 'sig/types.rbs', line 1049

def last_page
  @last_page
end

#node_idsArray[String] (readonly)

Returns the value of attribute node_ids.

Returns:

  • (Array[String])


1053
1054
1055
# File 'sig/types.rbs', line 1053

def node_ids
  @node_ids
end

#page_spansArray[PageSpan] (readonly)

Returns the value of attribute page_spans.

Returns:



1054
1055
1056
# File 'sig/types.rbs', line 1054

def page_spans
  @page_spans
end

#token_countInteger (readonly)

Returns the value of attribute token_count.

Returns:

  • (Integer)


1045
1046
1047
# File 'sig/types.rbs', line 1045

def token_count
  @token_count
end

#total_chunksInteger (readonly)

Returns the value of attribute total_chunks.

Returns:

  • (Integer)


1047
1048
1049
# File 'sig/types.rbs', line 1047

def total_chunks
  @total_chunks
end