MCPcopy
hub / github.com/datalab-to/marker / get_block

Method get_block

marker/schema/document.py:32–37  ·  view source on GitHub ↗
(self, block_id: BlockId)

Source from the content-addressed store, hash-verified

30 debug_data_path: str | None = None # Path that debug data was saved to
31
32 def get_block(self, block_id: BlockId):
33 page = self.get_page(block_id.page_id)
34 block = page.get_block(block_id)
35 if block:
36 return block
37 return None
38
39 def get_page(self, page_id):
40 for page in self.pages:

Callers 15

expand_layout_blocksMethod · 0.45
group_caption_blocksMethod · 0.45
group_listsMethod · 0.45
unmark_listsMethod · 0.45
check_layout_coverageMethod · 0.45
ocr_extractionMethod · 0.45
extract_jsonMethod · 0.45
extract_imageMethod · 0.45
extract_imageMethod · 0.45
get_prev_blockMethod · 0.45
__call__Method · 0.45

Calls 1

get_pageMethod · 0.95

Tested by 5

_ocr_pipeline_testFunction · 0.36
test_garbled_pdfFunction · 0.36
test_document_builderFunction · 0.36
test_overridingFunction · 0.36