Skip to content

新增知乎公式提取 - #451

Merged
e06084 merged 15 commits into
ccprocessor:devfrom
1041206149:zhihu
Jun 17, 2025
Merged

新增知乎公式提取#451
e06084 merged 15 commits into
ccprocessor:devfrom
1041206149:zhihu

Conversation

@1041206149

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.

@codecov

codecov Bot commented Jun 13, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 90.47619% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...it/extractor/html/recognizer/cc_math/tag_script.py 83.33% 4 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #451      +/-   ##
==========================================
- Coverage   89.97%   89.75%   -0.23%     
==========================================
  Files         107      102       -5     
  Lines        8288     8489     +201     
==========================================
+ Hits         7457     7619     +162     
- Misses        831      870      +39     
Files with missing lines Coverage Δ
...eb_kit/extractor/html/recognizer/cc_math/common.py 90.53% <100.00%> (+0.49%) ⬆️
llm_web_kit/extractor/html/recognizer/ccmath.py 87.80% <100.00%> (+0.62%) ⬆️
...it/extractor/html/recognizer/cc_math/tag_script.py 88.23% <83.33%> (-4.27%) ⬇️

... and 7 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.

Comment thread llm_web_kit/extractor/html/recognizer/cc_math/tag_script.py Outdated
2. 知乎公式类型判断使用现有逻辑
@e06084

e06084 commented Jun 13, 2025

Copy link
Copy Markdown
Collaborator

再看下是不是所有zhihu都是这样,不仅限于zhuanlan

Comment thread llm_web_kit/extractor/html/recognizer/cc_math/tag_script.py Outdated
Comment thread llm_web_kit/extractor/html/recognizer/cc_math/tag_script.py Outdated
2. 给知乎处理逻辑添加测试
Comment thread llm_web_kit/extractor/html/recognizer/cc_math/tag_script.py Outdated
Comment thread tests/llm_web_kit/extractor/html/recognizer/test_math.py Outdated
Comment thread llm_web_kit/extractor/html/recognizer/cc_math/common.py Outdated
@e06084
e06084 merged commit e17cf28 into ccprocessor:dev Jun 17, 2025
4 checks passed
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.

2 participants