Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert failed: No module named 'unimernet' #33

Open
wuwenxun777 opened this issue Aug 20, 2024 · 1 comment
Open

Convert failed: No module named 'unimernet' #33

wuwenxun777 opened this issue Aug 20, 2024 · 1 comment

Comments

@wuwenxun777
Copy link

for local file

from magic_doc.docconv import DocConverter, S3Config, ParsePDFType
converter = DocConverter(s3_config=None, parse_pdf_type=ParsePDFType.FULL)
markdown_content, _ = converter.convert("reimbursement.pdf", conv_timeout=300)
print(markdown_content)
运行上述代码的时候 会报缺少依赖 如果不适用full的话 就不会

@icecraft
Copy link
Collaborator

you can change the parse_pdf_type to ParsePDFType.FAST . the function of ParsePDFType.FULL have moved to MinerU https://github.com/opendatalab/MinerU

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

No branches or pull requests

2 participants