Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
2a28f604
Commit
2a28f604
authored
May 08, 2025
by
myhloli
Browse files
feat(modeling): add regex patterns for LaTeX symbol replacements
parent
a8ca1830
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
magic_pdf/model/sub_modules/mfr/unimernet/unimernet_hf/modeling_unimernet.py
..._modules/mfr/unimernet/unimernet_hf/modeling_unimernet.py
+3
-0
No files found.
magic_pdf/model/sub_modules/mfr/unimernet/unimernet_hf/modeling_unimernet.py
View file @
2a28f604
...
...
@@ -346,6 +346,9 @@ REPLACEMENTS_PATTERNS = {
re
.
compile
(
r
'\\textunderscore'
):
r
'\\_'
,
re
.
compile
(
r
'\\fint'
):
r
'⨏'
,
re
.
compile
(
r
'\\up '
):
r
'\\ '
,
re
.
compile
(
r
'\\vline = '
):
r
'\\models '
,
re
.
compile
(
r
'\\vDash '
):
r
'\\models '
,
re
.
compile
(
r
'\\sq \\sqcup '
):
r
'\\square '
,
}
QQUAD_PATTERN
=
re
.
compile
(
r
'\\qquad(?!\s)'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment