Browse Source

修复image_path的连接符

赵小蒙 1 year ago
parent
commit
eb79c884c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      magic_pdf/para/para_split.py

+ 1 - 1
magic_pdf/para/para_split.py

@@ -15,7 +15,7 @@ TEXT = "text"
 def __get_span_text(span):
 def __get_span_text(span):
     c = span.get('content', '')
     c = span.get('content', '')
     if len(c)==0:
     if len(c)==0:
-        c = span.get('image-path', '')
+        c = span.get('image_path', '')
         
         
     return c
     return c