Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
Update mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py
Xiaomeng Zhaoc8ccf4cf2018
diff --git a/mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py b/mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.pyindex 45d73c2d..0c879c92 100644--- a/mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py+++ b/mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py@@ -219,7 +219,7 @@ class AttentionMaskConverter:if causal_4d_mask is not None:expanded_attn_mask = causal_4d_mask.masked_fill_(- expanded_attn_mask.cast(torch.bool), torch.finfo(dtype).min+ expanded_attn_mask.to(torch.bool), torch.finfo(dtype).min)expanded_4d_mask = expanded_attn_mask