MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / walk

Method walk

docling/backend/html_backend.py:92–107  ·  view source on GitHub ↗
(self, element: Tag, doc: DoclingDocument)

Source from the content-addressed store, hash-verified

90 return doc
91
92 def walk(self, element: Tag, doc: DoclingDocument):
93 try:
94 # Iterate over elements in the body of the document
95 for idx, element in enumerate(element.children):
96 try:
97 self.analyse_element(element, idx, doc)
98 except Exception as exc_child:
99
100 _log.error(" -> error treating child: ", exc_child)
101 _log.error(" => element: ", element, "\n")
102 raise exc_child
103
104 except Exception as exc:
105 pass
106
107 return doc
108
109 def analyse_element(self, element: Tag, idx: int, doc: DoclingDocument):
110 """

Callers 5

convertMethod · 0.95
analyse_elementMethod · 0.95
handle_listMethod · 0.95
handle_listitemMethod · 0.95
check_files_md5_parallelFunction · 0.45

Calls 1

analyse_elementMethod · 0.95

Tested by

no test coverage detected