HYPERUU commited on
Commit
07dea83
·
verified ·
1 Parent(s): 3f2e9c9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -282,6 +282,8 @@ generate("Multi page parsing.", pdf_to_images("your_doc.pdf", dpi=300), image_mo
282
 
283
  For OmniDocBench evaluation, you need to perform the following post-processing.
284
  ```python
 
 
285
  def remove_det(raw: str) -> str:
286
  """
287
  Strip <|det|>type [bbox]<|/det|> markers, group lines belonging to the
 
282
 
283
  For OmniDocBench evaluation, you need to perform the following post-processing.
284
  ```python
285
+ DET_RE = re.compile(r'<\|det\|>([^<\s]+)(?:\s*\[[^\]]*\])?\s*<\|/det\|>(.*)', re.DOTALL)
286
+
287
  def remove_det(raw: str) -> str:
288
  """
289
  Strip <|det|>type [bbox]<|/det|> markers, group lines belonging to the