最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

ChatGPT ? 投喂語料,提升譯文質(zhì)量

2023-04-12 20:12 作者:翻譯技術(shù)點津  | 我要投稿

利用GPT-4引擎,ChatGPT可以讀取網(wǎng)頁內(nèi)容,根據(jù)上下文和用戶意圖生成更加流暢和自然的翻譯。如何利用這一特性,讓ChatGPT學(xué)習(xí)語料并最終生成高質(zhì)量的翻譯?本文探索了將雙語語料上傳至谷歌文檔,讓ChatGPT讀取學(xué)習(xí),從而從而提升譯文質(zhì)量的方法。使用這種方法,我們可以將雙語語料輸入到ChatGPT中,并將其應(yīng)用于翻譯。


1、投喂語料

在 Google Drive 上傳語料,此處選擇《中華人民共和國民法通則》雙語版(22624個字/詞)作為語料。上傳后在文件右上方修改文件權(quán)限為【公用】-【所有人可編輯】,以供ChatGPT讀取。

【本質(zhì)】:利用ChatGPT只能讀取網(wǎng)頁的特性,將語料做成網(wǎng)頁版,讓它讀取。


2、翻譯測試文本選自《中華人民共和國民法通則》中第一百五十四條(注:語料中已將這條刪去)


測試文本官方譯本:
Article 154 Time periods referred to in the Civil Law shall be calculated by the Gregorian calendar in years, months, days and hours.When a time period is prescribed in hours, calculation of the period shall begin on the prescribed hour. When a time period is prescribed in days, months and years, the day on which the period begins shall not be counted as within the period; calculation shall begin on the next day.If the last day of a time period falls on a Sunday or an official holiday, the day after the holiday shall be taken as the last day.The last day shall end at 24:00 hours. If business hours are applicable, the last day shall end at closing time.

3、測試第一步:

在未讀取語料、沒有任何提示詞的情況下,讓ChatGPT翻譯,結(jié)果如下(注:標(biāo)黃處為和原文本不同的地方):


Article 154: The time period referred to in the Civil Code shall be calculated in years, months, days, and hours according to the Gregorian calendar.

If the time period is stipulated to be calculated in hours, it shall be calculated from the specified time. If the time period is stipulated to be calculated in days, months, or years, the first day shall not be counted, and the calculation shall begin from the next day.If the last day of the time period falls on a Sunday or other statutory holiday, the following day shall be deemed as the last day of the period.The deadline for the last day of the time period is 24:00. If there are business hours, the deadline is until the end of the business activities.

4、測試第二步:

加入提示詞(法律英語),讓其潤色。提示詞來源于AIPRM FOR CHATGPT。結(jié)果如下:(注:綠色為潤色內(nèi)容,黃色為與官方譯文不同之處)
Article 154 Civil Law stipulates that time periods in civil law shall be calculated in years, months, days, and hours according to the Gregorian calendar.If a time period is specified to be calculated in hours, it shall commence from the specified time. If a time period is specified to be calculated in days, months, or years, the first day shall not be counted, and the calculation shall commence from the next day.If the last day of a time period falls on a Sunday or another statutory holiday, the following day shall be deemed as the last day of the period. The deadline for the last day of a time period is 24:00. If business hours are in effect, the deadline extends to the cessation of business activities.

5、測試第三步:
讀取語料,輸入提示詞,進行翻譯,結(jié)果如下:


(將文檔鏈接輸入對話框,分享給ChatGPT)


(讓ChatGPT簡單分析原文的語言風(fēng)格,確保它正確讀取文件,且理解原文)


(讓ChatGPT翻譯)

譯文:Article 154: The periods referred to in the Civil Code shall be calculated in years, months, days, and hours in accordance with the Gregorian calendar.If a period is specified in hours, it shall be calculated from the designated time. If a period is specified in days, months, or years, the first day shall not be counted and the period shall be calculated from the following day.If the last day of a period falls on a Sunday or other legal holiday, the day after the holiday shall be deemed as the last day of the period.The deadline for the last day of a period shall be 24:00. If there are business hours, the deadline shall be the end of the business activity.


(輸入 prompt,潤色譯文)

The periods mentioned in the Civil Code are calculated in years, months, days and hours according to the Gregorian calendar. The first day of the period is not counted for periods in days, months, or years, and the period begins from the following day. If the last day of a period falls on a Sunday or legal holiday, the last day is the day after the holiday. The deadline for the last day is the day after the holiday. The deadline for the last day of the period is 24:00, or the end of business activity if applicable.


6、使用BLEU機器翻譯質(zhì)量評測算法判斷這四份譯文優(yōu)劣
使用官方譯本作為標(biāo)準(zhǔn)。可以直接在ChatGPT里計算,也可以使用代碼計算。此處選擇直接讓ChatGPT計算數(shù)值。



(第一份使用BLUE的測試譯文)


(第三份測試譯文的數(shù)據(jù)及其它測試的 prompt)


(python 指令,如選擇使用 python 測試,可使用該指令)

數(shù)據(jù)如下:第一份:0.802第二份:0.892第三份:0.94第四份:0.77
發(fā)現(xiàn)第三份的相似度是最高的,說明讓ChatGPT讀取語料庫的方法,確實能提高翻譯質(zhì)量。


翻譯技術(shù)教育研究會ChatGPT專題小組致力于探索發(fā)掘ChatGPT為代表的AI工具在語言服務(wù)不同階段的應(yīng)用,進而提高從業(yè)者的工作效率。專題小組目前的主要方向是探索指令(prompt)及流程變更如何提升交互效果;了解及推介Github等平臺上的AI應(yīng)用,AI應(yīng)用嵌入語言服務(wù)流程及其優(yōu)化方式。小組通過定期會議及討論確定選題方向并通過文章、視頻等形式分享探索結(jié)果,歡迎通過文章留言為大家提供建議意見!


編輯:李林

ChatGPT ? 投喂語料,提升譯文質(zhì)量的評論 (共 條)

使用qq登录你需要登录后才可以评论。
星子县| 寿宁县| 贡山| 沧州市| 土默特左旗| 盐亭县| 将乐县| 镇安县| 黄浦区| 邢台市| 洪雅县| 会东县| 突泉县| 常州市| 杭锦旗| 定南县| 怀宁县| 永昌县| 高青县| 饶河县| 大新县| 南昌县| 顺义区| 佳木斯市| 扶余县| 南平市| 德清县| 元氏县| 新龙县| 秀山| 泰宁县| 邵阳县| 水富县| 威信县| 阳信县| 晋州市| 孝感市| 祁门县| 龙南县| 包头市| 罗城|