Skip to content

Commit 7f238ba

Browse files
authored
update doc (#4359)
1 parent da58278 commit 7f238ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/pipeline_usage/tutorials/ocr_pipelines/PP-DocTranslation.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ After executing the above code, you will obtain the parsed results of the origin
710710

711711
# PP-DocTranslation Prediction Process, API Description, and Output Description
712712

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>
714714
<table>
715715
<thead>
716716
<tr>
@@ -754,7 +754,7 @@ After executing the above code, you will obtain the parsed results of the origin
754754
</tbody>
755755
</table>
756756
</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>
758758
<table>
759759
<thead>
760760
<tr>
@@ -1299,7 +1299,7 @@ After executing the above code, you will obtain the parsed results of the origin
12991299
- 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.)
13001300
- 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.
13011301
- 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>
13031303
<table>
13041304
<thead>
13051305
<tr>

0 commit comments

Comments
 (0)