Project

General

Profile

Actions

Feature #251

open

Thử nghiệm dịch docx bằng json

Added by Linh Nguyễn Xuân 10 months ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Start date:
12/02/2023
Due date:
% Done:

0%

Estimated time:

Description

This is a json-format of a docx file, translate it to vietnamese and keep the original json structure


Files

Actions #4

Updated by nguyen hien 9 months ago

1. Đọc file document và ghi vào file json
2. Chia nhỏ file json
3. Update estimated_total_token và locked_token
4. Trans các file json bé , ghi kết quả vào phần output và tổng hợp tất cả vào file json
5. Apply phần dịch vào file document
6. Upload file lên S3
7. Update deduct_token

-------------------------------------------
1 Số ngoại lệ:
- Trường hợp dịch thiếu key so với json đầu vào sẽ dịch từng item trong json
- Trường hợp sau khi dịch mà GPT trả về không đúng format json thì sẽ dịch bằng Google ( dich bằng Google cũng truyền lên JSON chứ ko phải từng dòng text như cũ nữa )

Actions

Also available in: Atom PDF