You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pipeline_usage/tutorials/ocr_pipelines/PP-DocTranslation.en.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -710,7 +710,7 @@ After executing the above code, you will obtain the parsed results of the origin
710
710
711
711
# PP-DocTranslation Prediction Process, API Description, and Output Description
712
712
713
-
<details><summary>(1) Instantiation<code>create_pipeline</code>Instantiate a pipeline object, with specific parameter descriptions as follows:</summary>
713
+
<details><summary>(1) Instantiation<code>create_pipeline</code>Instantiate a pipeline object, with specific parameter descriptions as follows:</summary>
714
714
<table>
715
715
<thead>
716
716
<tr>
@@ -754,7 +754,7 @@ After executing the above code, you will obtain the parsed results of the origin
754
754
</tbody>
755
755
</table>
756
756
</details>
757
-
<details><summary>(2) Call the <code>visual_predict()</code>method of the PP-DocTranslation pipeline object to obtain visual prediction results. This method will return a <code>generator</code>. Below are the parameters and descriptions of the <code>visual_predict()</code>method:</summary>
757
+
<details><summary>(2) Call the <code>visual_predict()</code>method of the PP-DocTranslation pipeline object to obtain visual prediction results. This method will return a <code>generator</code>. Below are the parameters and descriptions of the <code>visual_predict()</code>method:</summary>
758
758
<table>
759
759
<thead>
760
760
<tr>
@@ -1299,7 +1299,7 @@ After executing the above code, you will obtain the parsed results of the origin
1299
1299
- Calling the `save_to_img()` method will save the visualization results to the specified `save_path`. If a directory is specified, it will save the layout region detection visualization image, global OCR visualization image, layout reading order visualization image, etc. If a file is specified, it will be saved directly to that file. (The pipeline usually contains many result images, so it is not recommended to directly specify a specific file path; otherwise, multiple images will be overwritten, and only the last image will be retained.)
1300
1300
- Calling the `save_to_markdown()` method will save the converted Markdown file to the specified `save_path`. The saved file path will be `save_path/{your_img_basename}.md`. If the input is a PDF file, it is recommended to directly specify a directory; otherwise, multiple markdown files will be overwritten.
1301
1301
- Calling the `concatenate_markdown_pages()` method will merge the multi-page Markdown content `markdown_list` output by the PP-DocTranslation pipeline into a single complete document and return the merged Markdown content.</details>
1302
-
<details><summary>(4) Call<code>translate()</code>method to perform document translation. This method will return the original markdown text and the translated text, which is a markdown object. You can save the required parts locally by executing the<code>save_to_markdown()</code>method. The following are the descriptions of the relevant parameters of the<code>translate()</code>method:</summary>
1302
+
<details><summary>(4) Call<code>translate()</code>method to perform document translation. This method will return the original markdown text and the translated text, which is a markdown object. You can save the required parts locally by executing the<code>save_to_markdown()</code>method. The following are the descriptions of the relevant parameters of the<code>translate()</code>method:</summary>
0 commit comments