C:\Users\Ace-Translate>python main.py
C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\transformers\models\marian\tokenization_marian.py:194: UserWarning: Recommended: pip install sacremoses.
warnings.warn("Recommended: pip install sacremoses.")
导航学习
Building prefix dict from the default dictionary ...
Dumping model to file cache C:\Users\AppData\Local\Temp\jieba.cache
Loading model cost 0.426 seconds.
Prefix dict has been built successfully.
['导航', '学习']
Traceback (most recent call last):
File "C:\Users\Ace-Translate\FileTranslation\PDF\pdf_translation_en2ch.py", line 12, in
from paddleocr import PPStructure,save_structure_res,PaddleOCR
ModuleNotFoundError: No module named 'paddleocr'
C:\Users\Ace-Translate>python main.py C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\transformers\models\marian\tokenization_marian.py:194: UserWarning: Recommended: pip install sacremoses. warnings.warn("Recommended: pip install sacremoses.") 导航学习 Building prefix dict from the default dictionary ... Dumping model to file cache C:\Users\AppData\Local\Temp\jieba.cache Loading model cost 0.426 seconds. Prefix dict has been built successfully. ['导航', '学习'] Traceback (most recent call last): File "C:\Users\Ace-Translate\FileTranslation\PDF\pdf_translation_en2ch.py", line 12, in
from paddleocr import PPStructure,save_structure_res,PaddleOCR
ModuleNotFoundError: No module named 'paddleocr'
作者你好,文本翻译正常,但是文件翻译出错了