# tableTranslate **Repository Path**: xihaishen/table-translate ## Basic Information - **Project Name**: tableTranslate - **Description**: 智能表格翻译工具 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-07 - **Last Updated**: 2026-02-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: Python, openAI ## README # TableTranslate 智能表格翻译,使用大语言模型,底层依赖 OpenAI 实现对各大厂商的模型的调用。 ## 一、step:程序处理过程 1. 读取表格对应的列 - 并将其输出到 text 文件中 2. 构造Prompt内容 - 获取大模型的 API - 对文本内容进行翻译 3. 将大模型按照某一个格式返回的内容保存到 txt 文件中 4. 读取文本内容并写入 excel 表格对应的列 --- 1. read origin data and out to `out_txt` file 2. get LLM api and make the prompt 3. read the `out_txt` file's content and translate to ai 4. get the translated result and save to the `translate_txt` file 5. read the `translate_txt` file and split the right content 6. get the 'translated content' and merge to the origin table file ## 二、验证核心逻辑 依靠大语言模型处理Excel中的外语翻译问题的可靠性与稳定性 ### 遇到的问题 大语言模型对于同一个属性的指令(翻译)实现次数越多,它对指令的偏移程度越大。虽然生成的大部分内容符合用户的要求,但是仍然有一部分内容莫名其妙产生了变化。对于数据对齐(原文,译文)的操作提出很大的挑战。