Skip to content

解决mathinsight中的公式提取问题与解析自定义latex语法#467

Closed
1041206149 wants to merge 7 commits into
ccprocessor:devfrom
1041206149:mathinsight2
Closed

解决mathinsight中的公式提取问题与解析自定义latex语法#467
1041206149 wants to merge 7 commits into
ccprocessor:devfrom
1041206149:mathinsight2

Conversation

@1041206149

@1041206149 1041206149 commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Please describe the motivation of this PR and the goal you want to achieve through this PR.

Modification

Please briefly describe what modification is made in this PR.

BC-breaking (Optional)

Does the modification introduce changes that break the backward compatibility of the downstream repositories?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here and update the documentation.

Checklist

Before PR:

  • Pre-commit or other linting tools are used to fix the potential lint issues.
  • Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
  • The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  • The documentation has been modified accordingly, like docstring or example tutorials.

After PR:

  • If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects.
  • CLA has been signed and all committers have signed the CLA in this PR.

2. 添加mathinsight自定义latex转化逻辑,转化时限定该域名
2. 修改了一些测试样例中的错误的公式统计记录
@codecov

codecov Bot commented Jun 23, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 95.77465% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...xtractor/html/recognizer/cc_math/render/mathjax.py 97.72% 1 Missing ⚠️
...extractor/html/recognizer/cc_math/render/render.py 66.66% 1 Missing ⚠️
llm_web_kit/model/unsafe_words_detector.py 50.00% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #467      +/-   ##
==========================================
+ Coverage   89.97%   90.15%   +0.18%     
==========================================
  Files         107      103       -4     
  Lines        8288     8544     +256     
==========================================
+ Hits         7457     7703     +246     
- Misses        831      841      +10     
Files with missing lines Coverage Δ
llm_web_kit/extractor/config.py 100.00% <ø> (ø)
...eb_kit/extractor/html/recognizer/cc_math/common.py 90.60% <100.00%> (+0.56%) ⬆️
...zer/cc_math/config/mathsight/formula_conversion.py 100.00% <100.00%> (ø)
llm_web_kit/extractor/html/recognizer/ccmath.py 88.09% <100.00%> (+0.91%) ⬆️
...it/main_html_parser/simplify_html/simplify_html.py 83.01% <100.00%> (-4.25%) ⬇️
llm_web_kit/model/model_impl.py 92.97% <ø> (ø)
llm_web_kit/model/politics_detector.py 87.07% <100.00%> (+13.24%) ⬆️
llm_web_kit/model/porn_detector.py 81.60% <100.00%> (ø)
...xtractor/html/recognizer/cc_math/render/mathjax.py 92.53% <97.72%> (+1.16%) ⬆️
...extractor/html/recognizer/cc_math/render/render.py 88.17% <66.66%> (-0.72%) ⬇️
... and 1 more

... and 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@1041206149 1041206149 closed this Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant