common problems
中文用户常遇到转换后出现乱码、段落错位或标点符号异常的情况。
protective measure
- Document preprocessing:确保原始PDF使用标准中文字体(如宋体、黑体)而非特殊字体
- Environment Configuration:在Python环境中安装完整的中文语言支持包
- parameterization: Settings
export OPENAI_DEFAULT_MODEL=gpt-4-1106-preview
(最新模型对中文支持更好) - 编码声明:在输出的.md文件首行添加
---
encoding: utf-8
---
problem screening
出现乱码时:1. 用file
命令检查PDF编码 2. 尝试先用英文PDF测试环境是否正常 3. 查看OpenAI API返回的原始数据。
Advanced Programs
对于专业用户:1. 修改代码添加中文后处理模块 2. 使用正则表达式校正常见转换错误 3. 训练专用于中文PDF的微调模型。
This answer comes from the articleMarkPDFDown: based on the multimodal model will be converted to PDF Markdown fileThe