Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

fix: increase confidence threshold for table classification in paddle_table_cls.py

myhloli2a8e6f9d4595
diff --git a/mineru/model/table/cls/paddle_table_cls.py b/mineru/model/table/cls/paddle_table_cls.py
index 4be971b5..8ab90268 100644
--- a/mineru/model/table/cls/paddle_table_cls.py
+++ b/mineru/model/table/cls/paddle_table_cls.py
@@ -68,6 +68,6 @@ class PaddleTableClsModel:
idx = np.argmax(result)
conf = float(np.max(result))
# logger.debug(f"Table classification result: {self.labels[idx]} with confidence {conf:.4f}")
- if idx == 0 and conf < 0.8:
+ if idx == 0 and conf < 0.9:
idx = 1
return self.labels[idx]