mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
Fixing doctags starting tag, that broke elements on first line during assembly
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
parent
0fe12d819a
commit
88b9ac6706
@ -323,7 +323,7 @@ class VlmPipeline(PaginatedPipeline):
|
|||||||
|
|
||||||
for line in lines:
|
for line in lines:
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
line = line.replace("<doc_tag>", "")
|
line = line.replace("<doctag>", "")
|
||||||
if line.startswith("<paragraph>"):
|
if line.startswith("<paragraph>"):
|
||||||
prov_item = extract_bounding_box(line)
|
prov_item = extract_bounding_box(line)
|
||||||
if self.force_backend_text:
|
if self.force_backend_text:
|
||||||
|
Loading…
Reference in New Issue
Block a user