1. 24 Dec, 2024 1 commit
    • myhloli's avatar
      feat(llm): add LLM-aided formula and text correction · c660fdc8
      myhloli authored
      - Add LLM-aided formula and text correction functionality
      - Update config reader to include LLM-aided settings
      - Create new LLM-aided processing module
      - Update main processing script to incorporate LLM-aided corrections
      - Modify download scripts to check for new config version
      c660fdc8
  2. 13 Dec, 2024 1 commit
    • myhloli's avatar
      fix(pdf): improve ligature handling and text extraction · c638fc5d
      myhloli authored
      - Move ligature replacement function to pdf_parse_union_core_v2.py
      - Optimize ligature replacement using a more efficient approach
      - Modify text extraction flags to preserve ligatures in PDF content
      - Remove unnecessary function from ocr_mkcontent.py
      c638fc5d
  3. 07 Dec, 2024 1 commit
    • myhloli's avatar
      fix(dict2md): add space for inline equations in CJK contexts · 74ee428b
      myhloli authored
      - In Chinese, Japanese, and Korean (CJK) languages, no space is needed for line breaks within paragraphs.
      - However, if an inline equation is at the end of a line, a space should be added to separate it from the following text.
      - This change improves the formatting of documents containing both CJK text and inline equations.
      74ee428b
  4. 29 Nov, 2024 3 commits
  5. 28 Nov, 2024 1 commit
  6. 26 Nov, 2024 2 commits
  7. 21 Nov, 2024 1 commit
  8. 19 Nov, 2024 1 commit
  9. 13 Nov, 2024 1 commit
  10. 04 Nov, 2024 1 commit
  11. 03 Nov, 2024 1 commit
  12. 01 Nov, 2024 2 commits
  13. 30 Oct, 2024 2 commits
    • myhloli's avatar
      fix(magic_pdf): handle missing image_path in spans · faf8c286
      myhloli authored
      - Add check for 'image_path' in spans to avoid errors when it's missing
      - Update image handling in both paragraph text and content dictionary
      - Improve error handling and make the code more robust
      faf8c286
    • myhloli's avatar
      fix(ocr): improve image and table content extraction · b7e9d454
      myhloli authored
      - Update image content extraction to iterate through all spans in a block
      - Add support for extracting table content from spans within a block
      - Handle multiple content types within table spans (latex, html, image)
      - Refactor code to be more modular and easier to maintain
      b7e9d454
  14. 26 Oct, 2024 1 commit
    • myhloli's avatar
      feat(draw_bbox): update bounding box drawing for tables and images · 0e8d5893
      myhloli authored
      - Add support for drawing bounding boxes of table and image sub-blocks
      - Implement sorting of table blocks based on type order
      - Update bounding box drawing for text and title blocks
      - Refactor code to handle different block types and their sub-blocks
      0e8d5893
  15. 25 Oct, 2024 1 commit
    • myhloli's avatar
      refactor(ocr): improve image and table block handling · c34c9d21
      myhloli authored
      - Split image and table blocks into separate categories
      - Add group_id to image and table blocks- Update block processing logic to handle new categories
      - Modify layout splitting and span filling to accommodate new block types
      - Adjust block indexing and sorting to consider new structures
      c34c9d21
  16. 21 Oct, 2024 1 commit
  17. 18 Oct, 2024 1 commit
  18. 17 Oct, 2024 1 commit
  19. 14 Oct, 2024 1 commit
    • myhloli's avatar
      feat(list&index block): detect and merge list and index blocks · 1f1dd353
      myhloli authored
      - Add detection for list and index blocks in OCR processing- Implement merging of list and index blocks across pages
      - Update block types to include list and index categories
      - Adjust text merging logic to handle new block types
      - Modify layout drawing to distinguish list and index blocks
      1f1dd353
  20. 18 Sep, 2024 3 commits
  21. 12 Sep, 2024 1 commit
    • myhloli's avatar
      feat(pipeline): pass language parameter for parsing and markdown conversion · 6062862c
      myhloli authored
      The pipeline now supports passing the language parameter to parsing functions and
      during markdown conversion to optimize processing based on the specified language.
      This enhancement allows for more accurate parsing and markdown generation, particularly
      when dealing with non-English content.
      6062862c
  22. 10 Sep, 2024 1 commit
    • drunkpig's avatar
      Realese 0.8.0 (#586) · 9f352df0
      drunkpig authored
      
      
      * Update README_zh-CN.md (#404) (#409)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * add dockerfile (#189)
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      
      * Update cla.yml
      
      * Update cla.yml
      
      * fix(ocr_mkcontent): improve language detection and content formatting (#458)
      
      Optimize the language detection logic to enhance content formatting.  This
      change addresses issues with long word segmentation. Language detection now uses a
      threshold to determine the language of a text based on the proportion of English characters.
      Formatting rules for content have been updated to consider a list of languages (initially
      including Chinese, Japanese, and Korean) where no space is added between content segments
      for inline equations and text spans, improving the handling of Asian languages.
      
      The impact of these changes includes improved accuracy in language detection, better
      segmentation of long words, and more appropriate spacing in content formatting for multiple
      languages.
      
      * fix(self_modify): merge detection boxes for optimized text region detection (#448)
      
      Merge adjacent and overlapping detection boxes to optimize text region detection in
      the document. Post processing of text boxes is enhanced by consolidating them into
      larger text lines, taking into account their vertical and horizontal alignment. This
      improvement reduces fragmentation and improves the readability of detected text blocks.
      
      * fix(pdf-extract): adjust box threshold for OCR detection (#447)
      
      Tuned the detection box threshold parameter in the OCR model initialization to improve the
      accuracy of text extraction from images. The threshold was modified from 0.6 to
      0.3 to filter out smaller detection boxes, which is expected to enhance the quality of the extracted
      text by reducing noise and false positives in the OCR process.
      
      * feat: rename the file generated by command line tools (#401)
      
      * feat: rename the file generated by command line tools
      
      * feat: add pdf filename as prefix to {span,layout,model}.pdf
      
      ---------
      Co-authored-by: default avataricecraft <tmortred@gmail.com>
      Co-authored-by: default avataricecraft <xurui1@pjlab.org.cn>
      
      * fix(ocr_mkcontent): revise table caption output (#397)
      
      * fix(ocr_mkcontent): revise table caption output
      
      - Ensuring that
        table captions are properly included in the output.
      - Remove the redundant `table_caption` variable。
      
      * Update cla.yml
      
      * Update bug_report.yml
      
      * feat(cli): add debug option for detailed error handling
      
      Enable users to invoke the CLI command with a new debug flag to get detailed debugging information.
      
      * fix(pdf-extract-kit): adjust crop_paste parameters for better accuracyThe crop_paste_x and crop_paste_y values in the pdf_extract_kit.py have been modified
      to improve the accuracy and consistency of OCR processing. The new values are set to 25
      to ensure more precise image cropping and pasting which leads to better OCR recognition
      results.
      
      * Update README_zh-CN.md (#404)
      
      correct FAQ url
      
      * Update README_zh-CN.md (#404) (#409) (#410)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * Update FAQ_zh_cn.md
      
      add new issue
      
      * Update FAQ_en_us.md
      
      * Update README_Windows_CUDA_Acceleration_zh_CN.md
      
      * Update README_zh-CN.md
      
      * @Thepathakarpit has signed the CLA in opendatalab/MinerU#418
      
      * fix(pdf-extract-kit): increase crop_paste margin for OCR processingDouble the crop_paste margin from25 to 50 to ensure better OCR accuracy and
      handling of border cases. This change will help in improving the overall quality of
      OCR'ed text by providing more context around the detected text areas.
      
      * fix(common): deep copy model list before drawing model bbox
      
      Use a deep copy of the original model list in `drow_model_bbox` to avoid potential
      modifications to the source data. This ensures the integrity of the original models
      is maintained while generating the model bounding boxes visualization.
      
      ---------
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      
      * build(docker): update docker build step (#471)
      
      * build(docker): update base image to Ubuntu 22.04 and install PaddlePaddleUpgrade the Docker base image from ubuntu:latest to ubuntu:22.04 for improved
      performance and stability.
      
      Additionally, integrate PaddlePaddle GPU version 3.0.0b1
      into the Docker build for enhanced AI capabilities. The MinIO configuration file has
      also been updated to the latest version.
      
      * build(dockerfile): Updated the Dockerfile
      
      * build(Dockerfile): update Dockerfile
      
      * docs(docker): add instructions for quick deployment with Docker
      
      Include Docker-based deployment instructions in the README for both English and
      Chinese locales. This update provides users a quick-start guide to using Docker for
      deployment, with notes on GPU VRAM requirements and default acceleration features.
      
      * build(docker): Layer the installation of dependencies, downloading the model, and the setup of the program itself.
      
      * build(docker): Layer the installation of dependencies, downloading the model, and the setup of the program itself.
      
      * upload an introduction about chemical formula and update readme.md (#489)
      
      * upload an introduction about chemical formula
      
      * rename 2 files
      
      * update readme.md at TODO in chemstery
      
      * rename 2 files and update readme.md at TODO in chemstery
      
      * update README_zh-CN.md at TODO in chemstery
      
      * upload an introduction about chemical formula and update readme.md (#489)
      
      * upload an introduction about chemical formula
      
      * rename 2 files
      
      * update readme.md at TODO in chemstery
      
      * rename 2 files and update readme.md at TODO in chemstery
      
      * update README_zh-CN.md at TODO in chemstery
      
      * fix: remove the default value of output option in tools/cli.py and tools/cli_dev.py (#494)
      Co-authored-by: default avataricecraft <xurui1@pjlab.org.cn>
      
      * feat: add test case (#499)
      Co-authored-by: default avatarquyuan <quyuan@pjlab.org>
      
      * Update cla.yml
      
      * Update gpu-ci.yml
      
      * Update cli.yml
      
      * Delete .github/workflows/gpu-ci.yml
      
      * fix(pdf-parse-union-core): #492 decrease span threshold for block filling (#500)
      
      Reduce the span threshold used in fill_spans_in_blocks from 0.6 to 0.3 to
      improve the accuracy of block filling based on layout analysis.
      
      * fix(detect_all_bboxes): remove small overlapping blocks by merging (#501)
      
      Previously, small blocks that overlapped with larger ones were merely removed. This fix
      changes the approach to merge smaller blocks into the larger block instead, ensuring that
      no information is lost and the larger block encompasses all the text content fully.
      
      * feat(cli&analyze&pipeline): add start_page and end_page args for pagination (#507)
      
      * feat(cli&analyze&pipeline): add start_page and end_page args for paginationAdd start_page_id and end_page_id arguments to various components of the PDF parsing
      pipeline to support pagination functionality. This feature allows users to specify the
      range of pages to be processed, enhancing the efficiency and flexibility of the system.
      
      * feat(cli&analyze&pipeline): add start_page and end_page args for paginationAdd start_page_id and end_page_id arguments to various components of the PDF parsing
      pipeline to support pagination functionality. This feature allows users to specify the
      range of pages to be processed, enhancing the efficiency and flexibility of the system.
      
      * feat(cli&analyze&pipeline): add start_page and end_page args for paginationAdd start_page_id and end_page_id arguments to various components of the PDF parsing
      pipeline to support pagination functionality. This feature allows users to specify the
      range of pages to be processed, enhancing the efficiency and flexibility of the system.
      
      * Feat/support rag (#510)
      
      * Create requirements-docker.txt
      
      * feat: update deps to support rag
      
      * feat: add support to rag, add rag_data_reader api for rag integration
      
      * feat: let user retrieve the filename of the processed file
      
      * feat: add projects demo for rag integrations
      
      ---------
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avataricecraft <xurui1@pjlab.org.cn>
      
      * Update Dockerfile
      
      * feat(gradio): add app by gradio (#512)
      
      * fix: replace \u0002, \u0003 in common text (#521)
      
      * fix replace \u0002, \u0003 in common text
      
      * fix(para): When an English line ends with a hyphen, do not add a space at the end.
      
      * fix(end_page_id):Fix the issue where end_page_id is corrected to len-1 when its input is 0. (#518)
      
      * fix(para): When an English line ends with a hyphen, do not add a space at the end. (#523)
      
      * fix replace \u0002, \u0003 in common text
      
      * fix(para): When an English line ends with a hyphen, do not add a space at the end.
      
      * fix: delete hyphen at end of line
      
      * Release: Release  0.7.1 verison, update dev (#527)
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table (#493)
      
      * Update cla.yml
      
      * Update bug_report.yml
      
      * Update README_zh-CN.md (#404)
      
      correct FAQ url
      
      * Update README_zh-CN.md (#404) (#409) (#410)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * Update FAQ_zh_cn.md
      
      add new issue
      
      * Update FAQ_en_us.md
      
      * Update README_Windows_CUDA_Acceleration_zh_CN.md
      
      * Update README_zh-CN.md
      
      * @Thepathakarpit has signed the CLA in opendatalab/MinerU#418
      
      * Update cla.yml
      
      * feat: add tablemaster_paddle (#463)
      
      * Update README_zh-CN.md (#404) (#409)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * add dockerfile (#189)
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      
      * Update cla.yml
      
      * Update cla.yml
      
      ---------
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      
      * <fix>(para_split_v2): index out of range issue of span_text first char (#396)
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      
      * @Matthijz98 has signed the CLA in opendatalab/MinerU#467
      
      * Create download_models.py
      
      * Create requirements-docker.txt
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * @strongerfly has signed the CLA in opendatalab/MinerU#487
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      ---------
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table (#508)
      
      * Update cla.yml
      
      * Update bug_report.yml
      
      * Update README_zh-CN.md (#404)
      
      correct FAQ url
      
      * Update README_zh-CN.md (#404) (#409) (#410)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * Update FAQ_zh_cn.md
      
      add new issue
      
      * Update FAQ_en_us.md
      
      * Update README_Windows_CUDA_Acceleration_zh_CN.md
      
      * Update README_zh-CN.md
      
      * @Thepathakarpit has signed the CLA in opendatalab/MinerU#418
      
      * Update cla.yml
      
      * feat: add tablemaster_paddle (#463)
      
      * Update README_zh-CN.md (#404) (#409)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * add dockerfile (#189)
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      
      * Update cla.yml
      
      * Update cla.yml
      
      ---------
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      
      * <fix>(para_split_v2): index out of range issue of span_text first char (#396)
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      
      * @Matthijz98 has signed the CLA in opendatalab/MinerU#467
      
      * Create download_models.py
      
      * Create requirements-docker.txt
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * @strongerfly has signed the CLA in opendatalab/MinerU#487
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * Update cla.yml
      
      * Delete .github/workflows/gpu-ci.yml
      
      * Update Huggingface and ModelScope links to organization account
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      ---------
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      Co-authored-by: default avataryyy <102640628+dt-yy@users.noreply.github.com>
      Co-authored-by: default avatarwangbinDL <wangbin_research@163.com>
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table (#511)
      
      * Update cla.yml
      
      * Update bug_report.yml
      
      * Update README_zh-CN.md (#404)
      
      correct FAQ url
      
      * Update README_zh-CN.md (#404) (#409) (#410)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * Update FAQ_zh_cn.md
      
      add new issue
      
      * Update FAQ_en_us.md
      
      * Update README_Windows_CUDA_Acceleration_zh_CN.md
      
      * Update README_zh-CN.md
      
      * @Thepathakarpit has signed the CLA in opendatalab/MinerU#418
      
      * Update cla.yml
      
      * feat: add tablemaster_paddle (#463)
      
      * Update README_zh-CN.md (#404) (#409)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * add dockerfile (#189)
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      
      * Update cla.yml
      
      * Update cla.yml
      
      ---------
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      
      * <fix>(para_split_v2): index out of range issue of span_text first char (#396)
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      
      * @Matthijz98 has signed the CLA in opendatalab/MinerU#467
      
      * Create download_models.py
      
      * Create requirements-docker.txt
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * @strongerfly has signed the CLA in opendatalab/MinerU#487
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * Update cla.yml
      
      * Delete .github/workflows/gpu-ci.yml
      
      * Update Huggingface and ModelScope links to organization account
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      ---------
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      Co-authored-by: default avataryyy <102640628+dt-yy@users.noreply.github.com>
      Co-authored-by: default avatarwangbinDL <wangbin_research@163.com>
      
      ---------
      Co-authored-by: default avatarKaiwen Liu <lkw_buaa@163.com>
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      Co-authored-by: default avatarwangbinDL <wangbin_research@163.com>
      
      * Hotfix readme 0.7.1 (#529)
      
      * release: release 0.7.1 version (#526)
      
      * Update README_zh-CN.md (#404) (#409)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * add dockerfile (#189)
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      
      * Update cla.yml
      
      * Update cla.yml
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table (#493)
      
      * Update cla.yml
      
      * Update bug_report.yml
      
      * Update README_zh-CN.md (#404)
      
      correct FAQ url
      
      * Update README_zh-CN.md (#404) (#409) (#410)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * Update FAQ_zh_cn.md
      
      add new issue
      
      * Update FAQ_en_us.md
      
      * Update README_Windows_CUDA_Acceleration_zh_CN.md
      
      * Update README_zh-CN.md
      
      * @Thepathakarpit has signed the CLA in opendatalab/MinerU#418
      
      * Update cla.yml
      
      * feat: add tablemaster_paddle (#463)
      
      * Update README_zh-CN.md (#404) (#409)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * add dockerfile (#189)
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      
      * Update cla.yml
      
      * Update cla.yml
      
      ---------
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      
      * <fix>(para_split_v2): index out of range issue of span_text first char (#396)
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      
      * @Matthijz98 has signed the CLA in opendatalab/MinerU#467
      
      * Create download_models.py
      
      * Create requirements-docker.txt
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * @strongerfly has signed the CLA in opendatalab/MinerU#487
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      ---------
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table (#508)
      
      * Update cla.yml
      
      * Update bug_report.yml
      
      * Update README_zh-CN.md (#404)
      
      correct FAQ url
      
      * Update README_zh-CN.md (#404) (#409) (#410)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * Update FAQ_zh_cn.md
      
      add new issue
      
      * Update FAQ_en_us.md
      
      * Update README_Windows_CUDA_Acceleration_zh_CN.md
      
      * Update README_zh-CN.md
      
      * @Thepathakarpit has signed the CLA in opendatalab/MinerU#418
      
      * Update cla.yml
      
      * feat: add tablemaster_paddle (#463)
      
      * Update README_zh-CN.md (#404) (#409)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * add dockerfile (#189)
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      
      * Update cla.yml
      
      * Update cla.yml
      
      ---------
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      
      * <fix>(para_split_v2): index out of range issue of span_text first char (#396)
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      
      * @Matthijz98 has signed the CLA in opendatalab/MinerU#467
      
      * Create download_models.py
      
      * Create requirements-docker.txt
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * @strongerfly has signed the CLA in opendatalab/MinerU#487
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * Update cla.yml
      
      * Delete .github/workflows/gpu-ci.yml
      
      * Update Huggingface and ModelScope links to organization account
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      ---------
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      Co-authored-by: default avataryyy <102640628+dt-yy@users.noreply.github.com>
      Co-authored-by: default avatarwangbinDL <wangbin_research@163.com>
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table (#511)
      
      * Update cla.yml
      
      * Update bug_report.yml
      
      * Update README_zh-CN.md (#404)
      
      correct FAQ url
      
      * Update README_zh-CN.md (#404) (#409) (#410)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * Update FAQ_zh_cn.md
      
      add new issue
      
      * Update FAQ_en_us.md
      
      * Update README_Windows_CUDA_Acceleration_zh_CN.md
      
      * Update README_zh-CN.md
      
      * @Thepathakarpit has signed the CLA in opendatalab/MinerU#418
      
      * Update cla.yml
      
      * feat: add tablemaster_paddle (#463)
      
      * Update README_zh-CN.md (#404) (#409)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * add dockerfile (#189)
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      
      * Update cla.yml
      
      * Update cla.yml
      
      ---------
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      
      * <fix>(para_split_v2): index out of range issue of span_text first char (#396)
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      
      * @Matthijz98 has signed the CLA in opendatalab/MinerU#467
      
      * Create download_models.py
      
      * Create requirements-docker.txt
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * @strongerfly has signed the CLA in opendatalab/MinerU#487
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * Update cla.yml
      
      * Delete .github/workflows/gpu-ci.yml
      
      * Update Huggingface and ModelScope links to organization account
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      * feat<table model>: add tablemaster with paddleocr to detect and recognize table
      
      ---------
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      Co-authored-by: default avataryyy <102640628+dt-yy@users.noreply.github.com>
      Co-authored-by: default avatarwangbinDL <wangbin_research@163.com>
      
      ---------
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avatarKaiwen Liu <lkw_buaa@163.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      Co-authored-by: default avatarwangbinDL <wangbin_research@163.com>
      
      * Update README.md
      
      * Update README_zh-CN.md
      
      * Update README_zh-CN.md
      
      ---------
      Co-authored-by: default avataryyy <102640628+dt-yy@users.noreply.github.com>
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avatarKaiwen Liu <lkw_buaa@163.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      Co-authored-by: default avatarwangbinDL <wangbin_research@163.com>
      
      * Update README_zh-CN.md
      
      delete Known issue about table recognition
      
      * Update Dockerfile
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination #384 (#542)
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination #384
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination #384
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination #384
      
      * fix: typo error in markdown (#536)
      Co-authored-by: default avataricecraft <xurui1@pjlab.org.cn>
      
      * fix(gradio): remove unused imports and simplify pdf display (#534)
      
      Removed the previously used gradio and gradio-pdf imports which were not leveraged in the code. Also,
      replaced the custom `show_pdf` function with direct use of the `PDF` component from gradio for a simpler
      and more integrated PDF upload and display solution, improving code maintainability and readability.
      
      * Feat/support footnote in figure (#532)
      
      * feat: support figure footnote
      
      * feat: using the relative position to combine footnote, table, image
      
      * feat: add the readme of projects
      
      * fix: code spell in unittest
      
      ---------
      Co-authored-by: default avataricecraft <xurui1@pjlab.org.cn>
      
      * refactor(pdf_extract_kit): implement singleton pattern for atomic models (#533)
      
      Refactor the pdf_extract_kit module to utilize a singleton pattern when initializing
      atomic models. This change ensures that atomic models are instantiated at most once,
      optimizing memory usage and reducing redundant initialization steps. The AtomModelSingleton
      class now manages the instantiation and retrieval of atomic models, improving the
      overall structure and efficiency of the codebase.
      
      * Update README.md
      
      * Update README_zh-CN.md
      
      * Update README_zh-CN.md
      
      add HF、modelscope、colab url
      
      * Update README.md
      
      * Update README.md
      
      * Update README.md
      
      * Update README.md
      
      * Update README_zh-CN.md
      
      * Rename README.md to README_zh-CN.md
      
      * Create readme.md
      
      * Rename readme.md to README.md
      
      * Rename README.md to README_zh-CN.md
      
      * Update README_zh-CN.md
      
      * Create README.md
      
      * Update README.md
      
      * Update README.md
      
      * Update README.md
      
      * Update README_zh-CN.md
      
      * Update README.md
      
      * Update README_zh-CN.md
      
      * Update README_zh-CN.md
      
      * Update README.md
      
      * Update README_zh-CN.md
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination #384 (#573)
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination #384
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination #384
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination #384
      
      * fix: resolve inaccuracy of drawing layout box caused by paragraphs combination #384
      
      * Update README_zh-CN.md
      
      * Update README.md
      
      * Update README.md
      
      * Update README.md
      
      * Update README_zh-CN.md
      
      * add rag data api
      
      * Update README_zh-CN.md
      
      update rag api image
      
      * Update README.md
      
      docs: remove RAG related release notes
      
      * Update README_zh-CN.md
      
      docs: remove RAG related release notes
      
      * Update README_zh-CN.md
      
      update 更新记录
      
      ---------
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatarAoyang Fang <222010547@link.cuhk.edu.cn>
      Co-authored-by: default avatarXiaomeng Zhao <moe@myhloli.com>
      Co-authored-by: default avataricecraft <tmortred@163.com>
      Co-authored-by: default avataricecraft <tmortred@gmail.com>
      Co-authored-by: default avataricecraft <xurui1@pjlab.org.cn>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarSiyu Hao <131659128+GDDGCZ518@users.noreply.github.com>
      Co-authored-by: default avataryyy <102640628+dt-yy@users.noreply.github.com>
      Co-authored-by: default avatarquyuan <quyuan@pjlab.org>
      Co-authored-by: default avatarKaiwen Liu <lkw_buaa@163.com>
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      Co-authored-by: default avatarwangbinDL <wangbin_research@163.com>
      9f352df0
  23. 03 Sep, 2024 1 commit
  24. 02 Sep, 2024 4 commits
  25. 20 Aug, 2024 2 commits
    • Xiaomeng Zhao's avatar
      fix(ocr_mkcontent): revise table caption output (#397) · dd19f59e
      Xiaomeng Zhao authored
      
      
      * fix(ocr_mkcontent): revise table caption output
      
      - Ensuring that
        table captions are properly included in the output.
      - Remove the redundant `table_caption` variable。
      
      * Update cla.yml
      
      * Update bug_report.yml
      
      * feat(cli): add debug option for detailed error handling
      
      Enable users to invoke the CLI command with a new debug flag to get detailed debugging information.
      
      * fix(pdf-extract-kit): adjust crop_paste parameters for better accuracyThe crop_paste_x and crop_paste_y values in the pdf_extract_kit.py have been modified
      to improve the accuracy and consistency of OCR processing. The new values are set to 25
      to ensure more precise image cropping and pasting which leads to better OCR recognition
      results.
      
      * Update README_zh-CN.md (#404)
      
      correct FAQ url
      
      * Update README_zh-CN.md (#404) (#409) (#410)
      
      correct FAQ url
      Co-authored-by: default avatarsfk <18810651050@163.com>
      
      * Update FAQ_zh_cn.md
      
      add new issue
      
      * Update FAQ_en_us.md
      
      * Update README_Windows_CUDA_Acceleration_zh_CN.md
      
      * Update README_zh-CN.md
      
      * @Thepathakarpit has signed the CLA in opendatalab/MinerU#418
      
      * fix(pdf-extract-kit): increase crop_paste margin for OCR processingDouble the crop_paste margin from25 to 50 to ensure better OCR accuracy and
      handling of border cases. This change will help in improving the overall quality of
      OCR'ed text by providing more context around the detected text areas.
      
      * fix(common): deep copy model list before drawing model bbox
      
      Use a deep copy of the original model list in `drow_model_bbox` to avoid potential
      modifications to the source data. This ensures the integrity of the original models
      is maintained while generating the model bounding boxes visualization.
      
      ---------
      Co-authored-by: default avatarsfk <18810651050@163.com>
      Co-authored-by: default avatardrunkpig <60862764+drunkpig@users.noreply.github.com>
      Co-authored-by: default avatargithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      dd19f59e
    • Xiaomeng Zhao's avatar
      fix(ocr_mkcontent): improve language detection and content formatting (#458) · 66e3ce9c
      Xiaomeng Zhao authored
      Optimize the language detection logic to enhance content formatting.  This
      change addresses issues with long word segmentation. Language detection now uses a
      threshold to determine the language of a text based on the proportion of English characters.
      Formatting rules for content have been updated to consider a list of languages (initially
      including Chinese, Japanese, and Korean) where no space is added between content segments
      for inline equations and text spans, improving the handling of Asian languages.
      
      The impact of these changes includes improved accuracy in language detection, better
      segmentation of long words, and more appropriate spacing in content formatting for multiple
      languages.
      66e3ce9c
  26. 05 Aug, 2024 1 commit
  27. 04 Aug, 2024 1 commit
    • myhloli's avatar
      fix(ocr_mkcontent): add spaces around inline equation in content · 0998d22a
      myhloli authored
      Ensure proper formatting of inline equations by adding spaces outside the equation delimitersto prevent markdown from interpreting the equation content as part of a link. This addresses
      the issue where inline OCR equations appear without the correct markdown formatting.
      0998d22a
  28. 02 Aug, 2024 1 commit
    • Kaiwen Liu's avatar
      feat(model inference): add table recognition and conversion to LaTeX (#284) · 37925f36
      Kaiwen Liu authored
      * # add table recognition using struct-eqtable
      ## Changelog
      31/07/20204
      - Support table recognition. Table images will be converted into html.
      
      ### how to use the new feature:
      set the attribute 'table-mode' to 'true' in magic-pdf.json
      
      ### caution:
      it takes 200s to 500s to convert a single table image using cpu
      
      * # add table recognition using struct-eqtable
      ## Changelog
      31/07/20204
      - Support table recognition. Table images will be converted into LaTex.
      
      ### how to use the new feature:
      set the attribute 'table-mode' to 'true' in magic-pdf.json
      
      ### caution:
      it takes 200s to 500s to convert a single table image using cpu
      
      * # feat(model inference): add table recognition and convertion to LaTeX
      
      # What's Changed
      
      ### New Features
      
      - Add table content recognition, we use weights of [StructEqTable](https://github.com/UniModal4Reasoning/StructEqTable-Deploy) to convert table image to LaTex.
      
      ### Instruction
      
      - pip install pypandoc struct-eqtable==0.1.0
      - Download [StructEqTable weights](https://huggingface.co/wanderkid/PDF-Extract-Kit/tree/main/models/TabRec
      
      ) and put it under models/ directory.
      - Edit 'table-mode' value to turn on table recognition function which is turned off by default.
      - If you did not download any models before, refer to [how to download models](docs/how_to_download_models_zh_cn.md)。
      
      * add table recognition and convertion to LaTeX
      
      * add table recognition and conversion to LaTeX
      
      * add table recognition and conversion to LaTeX
      
      * add table recognition and conversion to LaTeX
      
      ---------
      Co-authored-by: default avatarliukaiwen <liukaiwen@pjlab.org.cn>
      37925f36
  29. 01 Aug, 2024 1 commit