magic-pdf 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
magic_pdf/libs/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.0.0"
1
+ __version__ = "1.0.1"
@@ -860,15 +860,18 @@ def pdf_parse_union(
860
860
  """公式优化"""
861
861
  formula_aided_config = llm_aided_config.get('formula_aided', None)
862
862
  if formula_aided_config is not None:
863
- llm_aided_formula(pdf_info_dict, formula_aided_config)
863
+ if formula_aided_config.get('enable', False):
864
+ llm_aided_formula(pdf_info_dict, formula_aided_config)
864
865
  """文本优化"""
865
866
  text_aided_config = llm_aided_config.get('text_aided', None)
866
867
  if text_aided_config is not None:
867
- llm_aided_text(pdf_info_dict, text_aided_config)
868
+ if text_aided_config.get('enable', False):
869
+ llm_aided_text(pdf_info_dict, text_aided_config)
868
870
  """标题优化"""
869
871
  title_aided_config = llm_aided_config.get('title_aided', None)
870
872
  if title_aided_config is not None:
871
- llm_aided_title(pdf_info_dict, title_aided_config)
873
+ if title_aided_config.get('enable', False):
874
+ llm_aided_title(pdf_info_dict, title_aided_config)
872
875
 
873
876
  """dict转list"""
874
877
  pdf_info_list = dict_to_list(pdf_info_dict)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: magic-pdf
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: A practical tool for converting PDF to Markdown
5
5
  Home-page: https://github.com/opendatalab/MinerU
6
6
  Requires-Python: >=3.9
@@ -1,5 +1,5 @@
1
1
  magic_pdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- magic_pdf/pdf_parse_union_core_v2.py,sha256=uZiTwyVT5iE4YRHzUfN5kifHtYuEuKIqQHnAZQofWuM,33292
2
+ magic_pdf/pdf_parse_union_core_v2.py,sha256=wjc9Ev7F-FV3UQQkpY_hRcBMC8xczZqUrUd7s6qJrLk,33473
3
3
  magic_pdf/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  magic_pdf/config/constants.py,sha256=fXGzANULnJWLPxwYp3BEFWx-rnorzpySMx63ffyEyq4,1272
5
5
  magic_pdf/config/drop_reason.py,sha256=CqjMzBE96Qo8OeFvhhhItY8WhyqsKhE3DmyJLoQZNCc,2248
@@ -50,7 +50,7 @@ magic_pdf/libs/path_utils.py,sha256=Hykw_l5CU736b2egHV9P7B-qh3QNKO4nZSGCbsi0Z8E,
50
50
  magic_pdf/libs/pdf_check.py,sha256=zBwUThKKBtnrNPmgE10lYsTy1Kq7j_6IejO7JR0J4pA,3118
51
51
  magic_pdf/libs/pdf_image_tools.py,sha256=kjzSEbm7K0yiHv8kJ4VbZ9HHktM8qvAv3LhxRyDZEQk,1987
52
52
  magic_pdf/libs/safe_filename.py,sha256=ckwcM_eqoysTb5id8czp-tXq2G9da0-l3pshZDCHQtE,236
53
- magic_pdf/libs/version.py,sha256=J-j-u0itpEFT6irdmWmixQqYMadNl1X91TxUmoiLHMI,22
53
+ magic_pdf/libs/version.py,sha256=d4QHYmS_30j0hPN8NmNPnQ_Z0TphDRbu4MtQj9cT9e8,22
54
54
  magic_pdf/model/__init__.py,sha256=sa-dO2k-TLy25I2gRrzjm_cQeYfzMf-pLwBJHkIxGo0,51
55
55
  magic_pdf/model/batch_analyze.py,sha256=A49qD5zY9G8nl6wnpMLATqS4_xOOgRvjo1Eq6v_mcUE,11551
56
56
  magic_pdf/model/doc_analyze_by_custom_model.py,sha256=AZSzqzGz5utLwuysF5JY5k5pYcJGtcppNP2BbvExLnA,5989
@@ -138,9 +138,9 @@ magic_pdf/tools/common.py,sha256=1LfMeXBBsb3WlGeNAze_pPOYXQ8Qbfh-JgRXweojHKo,838
138
138
  magic_pdf/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
139
139
  magic_pdf/utils/annotations.py,sha256=82ou3uELNbQWa9hOFFkVt0gsIskAKf5msCv5J2IJ5V0,211
140
140
  magic_pdf/utils/office_to_pdf.py,sha256=7aj-Ls2v8saD-Rgu_t3FIc-J3Ka9wnmiEH5zY-H1Vxs,729
141
- magic_pdf-1.0.0.dist-info/LICENSE.md,sha256=jVa0BUaKrRH4erV2P5AeJ24I2WRv9chIGxditreJ6e0,34524
142
- magic_pdf-1.0.0.dist-info/METADATA,sha256=itfWxjtkwtZt0xdUfRuDu0v6aXQUB8yEhA5tCimZkgc,40499
143
- magic_pdf-1.0.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
144
- magic_pdf-1.0.0.dist-info/entry_points.txt,sha256=wXwYke3j8fqDQTocUspL-CqDUEv3Tfcwp09fM8dZAhA,98
145
- magic_pdf-1.0.0.dist-info/top_level.txt,sha256=J9I0AzmHWGkp9c6DL8Oe4mEx3yYphLzkRn4H25Lg1rE,10
146
- magic_pdf-1.0.0.dist-info/RECORD,,
141
+ magic_pdf-1.0.1.dist-info/LICENSE.md,sha256=jVa0BUaKrRH4erV2P5AeJ24I2WRv9chIGxditreJ6e0,34524
142
+ magic_pdf-1.0.1.dist-info/METADATA,sha256=DC6l1zz6GIZxALaEdhdjyqzxDZ8784tTZYut_l2FFoQ,40499
143
+ magic_pdf-1.0.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
144
+ magic_pdf-1.0.1.dist-info/entry_points.txt,sha256=wXwYke3j8fqDQTocUspL-CqDUEv3Tfcwp09fM8dZAhA,98
145
+ magic_pdf-1.0.1.dist-info/top_level.txt,sha256=J9I0AzmHWGkp9c6DL8Oe4mEx3yYphLzkRn4H25Lg1rE,10
146
+ magic_pdf-1.0.1.dist-info/RECORD,,