소스 검색

repair doc

liuhongen1234567 6 달 전
부모
커밋
6d9ccbc08b

+ 1 - 1
docs/module_usage/tutorials/ocr_modules/formula_recognition.en.md

@@ -150,7 +150,7 @@ The visualization image is as follows:
 <b>Note: If you need to visualize the formula recognition pipeline, you need to run the following commands to install the LaTeX rendering environment. Currently, the formula recognition visualization pipeline only supports the Ubuntu environment; other environments are not supported at this time. For complex formulas, the LaTeX results may include some advanced representations that might not be displayed successfully in environments like Markdown:</b>
 ```bash
 sudo apt-get update
-sudo apt-get install texlive texlive-latex-base texlive-latex-extra -y
+sudo apt-get install texlive texlive-latex-base texlive-xetex latex-cjk-all texlive-latex-extra -y
 ````
 
 The explanations for the methods, parameters, etc., are as follows:

+ 1 - 1
docs/module_usage/tutorials/ocr_modules/formula_recognition.md

@@ -144,7 +144,7 @@ for res in output:
 <b> 注:如果您需要对公式识别产线进行可视化,需要运行如下命令来对LaTeX渲染环境进行安装。目前公式识别产线可视化只支持Ubuntu环境,其他环境暂不支持。对于复杂公式,LaTeX 结果可能包含部分高级的表示,Markdown等环境中未必可以成功显示:</b>
 ```bash
 sudo apt-get update
-sudo apt-get install texlive texlive-latex-base texlive-latex-extra -y
+sudo apt-get install texlive texlive-latex-base texlive-xetex latex-cjk-all texlive-latex-extra -y
 ```
 
 相关方法、参数等说明如下:

+ 0 - 3
paddlex/inference/models/formula_recognition/processors.py

@@ -904,10 +904,7 @@ class UniMERNetDecode(object):
 
         text = self.remove_chinese_text_wrapping(text)
         text = fix_text(text)
-        print("=" * 100)
-        print(text)
         text = self.normalize(text)
-        print(text)
         return text
 
     def __call__(