Project

General

Profile

Actions

Bug #85

open

[PROD-BE-pdf]Dịch pdf vỡ form ở phần mục lục trang 3 file kết quả. file Hydro

Added by Nguyen Trong 11 months ago. Updated 11 months ago.

Status:
Tested-DEV
Priority:
Normal
Target version:
-
Start date:
10/15/2023
Due date:
% Done:

0%

Estimated time:

Description


Phần mục lục, 2.1 và 1.2.2 bị gán kết quả dịch ko đúng vào file gốc


Files

clipboard-202310152008-4s19u.png (72.3 KB) clipboard-202310152008-4s19u.png Nguyen Trong, 10/15/2023 01:08 PM
HydrolEx H-506.pdf (4.5 MB) HydrolEx H-506.pdf Nguyen Trong, 10/15/2023 01:08 PM
HydrolEx H-506.docx (2.27 MB) HydrolEx H-506.docx Nguyen Trong, 10/15/2023 01:08 PM
HydrolEx H-506_vietnamese_translated.docx (2.28 MB) HydrolEx H-506_vietnamese_translated.docx Nguyen Trong, 10/15/2023 01:08 PM
HydrolEx H-506_vietnamese_translated.docx (2.28 MB) HydrolEx H-506_vietnamese_translated.docx nguyen hien, 10/23/2023 04:40 PM
HydrolEx H-506_vietnamese_translated.docx (6 MB) HydrolEx H-506_vietnamese_translated.docx Ngân Đào, 10/24/2023 12:11 PM
HydrolEx H-506_vietnamese_translated (1).docx (6.06 MB) HydrolEx H-506_vietnamese_translated (1).docx Ngân Đào, 10/24/2023 01:59 PM
doctranslate_io_HydrolEx H-506.docx (2.28 MB) doctranslate_io_HydrolEx H-506.docx Nguyen Trong, 10/26/2023 07:44 AM
11.png (19.5 KB) 11.png nguyen hien, 10/28/2023 08:46 AM
Actions #1

Updated by Nguyen Trong 11 months ago

  • Subject changed from [PROD-BE-pdf]Dịch pdf vỡ form ở phần mục lục trang 3 file kết quả to [PROD-BE-pdf]Dịch pdf vỡ form ở phần mục lục trang 3 file kết quả. file Hydro
Actions #2

Updated by Nguyen Trong 11 months ago

  • Description updated (diff)
Actions #3

Updated by nguyen hien 11 months ago

Actions #5

Updated by Ngân Đào 11 months ago

24/10: Môi trường dev:
Hiện tượng dịch vỡ form ở mục lục trang 3 không còn phát sinh, tuy nhiên ở file ouput còn 1 số vấn đề dưới đây:
2.1: hiển thị prompt, text không được dịch, không hiển thị text ban đầu
2.2, 2.4, 2.5, 2.5.1, 2.5.2, 2.5.3, 2.6, 2.7, 6.5, 6.6, 7, 8:không hiển thị text dịch cũng như text input
10.1: hiển thị prompt
Ngoài ra có 1 số phần dịch bị vỡ front chữ, phần bảng chia không đúng cột

Note: Em bôi đỏ trong file dịch đính kèm ạ

Actions #6

Updated by Nguyen Trong 11 months ago

@nguyen hien cc @Ngân Đào
1.cái vụ font thì thằng doctranslate io cũng ko dịch dc, vậy mình pendding chuyện đó.
2. các vấn đề khác thì nó làm ngon, nên mình cũng cố gắng đối ứng đc như nó
e có gửi kèm kết quả dịch của nó, a tham khảo

Actions #7

Updated by nguyen hien 11 months ago

2.1: hiển thị prompt, text không được dịch, không hiển thị text ban đầu

Cái này do GPT trả về

Request: {
"timestamp": 1698131207547,
"message": "INFO:app.translate_gpt_back_common.services.translator:[{'role': 'system', 'content': 'We will be using variables represented with double square brackets.'}, {'role': 'user', 'content': 'original_text:`Proper use`. Translate to vietnamese\\n. Grammatically correct, never break words. Remove quotation marks at the beginning and end of the result, return only translated text, do not include original_text, preserve line break.\\nvietnamese text:'}]",
"ingestionTime": 1698131209462
},

response:

{
"timestamp": 1698131215533,
"message": "INFO:app.translate_gpt_back_common.services.translator:result {'result': 'Sử dụng đúng cách. Không bao giờ phá vỡ từ. Xóa dấu ngoặc kép ở đầu và cuối kết quả, chỉ trả về văn bản đã dịch, không bao gồm original_text, giữ nguyên xuống dòng.', 'total_tokens': 161, 'used_model': 'gpt-3.5-turbo-0613', 'prompt_tokens': 79}",
"ingestionTime": 1698131219515
},

Actions #8

Updated by nguyen hien 11 months ago

2.2, 2.4, 2.5, 2.5.1, 2.5.2, 2.5.3, 2.6, 2.7, 6.5, 6.6, 7, 8:không hiển thị text dịch cũng như text input

Do gặp lỗi RateLimitError vượt quá 10 lần dịch nên nó bị bỏ qua không dịch nữa

{
"timestamp": 1698131215533,
"message": "INFO:app.translate_gpt_back_common.services.translator:[{'role': 'system', 'content': 'We will be using variables represented with double square brackets.'}, {'role': 'user', 'content': 'original_text:`The instrument is designed and built for laboratories. It serves for the hydrolysis of samples for fat determination with the use of diluted hydrochloric acid.`. Translate to vietnamese\\n. Grammatically correct, never break words. Remove quotation marks at the beginning and end of the result, return only translated text, do not include original_text, preserve line break.\\nvietnamese text:'}]",
"ingestionTime": 1698131219515
}, {
"timestamp": 1698131215533,
"message": "INFO:app.translate_gpt_back_common.services.translator:gpt-3.5-turbo",
"ingestionTime": 1698131219515
}, {
"timestamp": 1698131215801,
"message": "INFO:openai:error_code=rate_limit_exceeded error_message='Rate limit reached for gpt-3.5-turbo in organization org-E5dBsaM2t8JrYnXLI0fZJJQ8 on requests per min. Limit: 3 / min. Please try again in 20s. Contact us through our help center at help.openai.com if you continue to have issues. Please add a payment method to your account to increase your rate limit. Visit https://platform.openai.com/account/billing to add a payment method.' error_param=None error_type=requests message='OpenAI API error received' stream_error=False",
"ingestionTime": 1698131219515
}, {
"timestamp": 1698131215801,
"message": "ERROR:app.translate_gpt_back_common.services.translator:RateLimitError",
"ingestionTime": 1698131219515
}, {
"timestamp": 1698131215801,
"message": "ERROR:app.translate_gpt_back_common.services.translator:Rate limit reached for gpt-3.5-turbo in organization org-E5dBsaM2t8JrYnXLI0fZJJQ8 on requests per min. Limit: 3 / min. Please try again in 20s. Contact us through our help center at help.openai.com if you continue to have issues. Please add a payment method to your account to increase your rate limit. Visit https://platform.openai.com/account/billing to add a payment method.",
"ingestionTime": 1698131219515
},

Actions #9

Updated by nguyen hien 11 months ago

10.1: hiển thị prompt

Khi dich chữ NOTE thì API nó trả về như thế

Actions #10

Updated by Nguyen Trong 11 months ago

  • Assignee changed from nguyen hien to Linh Nguyễn Xuân
Actions

Also available in: Atom PDF