Closed TamasBarta closed 7 months ago
Some other examples: It translated "Remove"
as
"Sure, here's the translation of the example:\n"
"\n"
"Példa"
"Cancel"
as
"Understood. If you change your mind and decide to provide the content for translation, feel free to let me know. I'm "
"here to assist you."
"No"
as
"I apologize for the misunderstanding. Please provide me with the English content you would like to have translated into "
"Hungarian, and I will be happy to assist you."
"pending"
as
"Okay, I'll be waiting for the content you want to translate."
Could you please share your po file with the minimal entities required to reproduce this problem? This will allow me to fine-tune the system prompt accordingly.
在 2023年8月28日星期一,Tamás Barta @.***> 写道:
Another example: It translated "Remove" as
"Sure, here's the translation of the example:\n" "\n" "Példa"
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.< https://ci4.googleusercontent.com/proxy/G10X-U95zccJnH_6w0EEg-gm_nBnT6RVJJPzjw0sP7Cm9xoR-9ciiDqhlqrNRU4qU0bOC7w20ZfnaczxgGq-aHJ3b3BiZ1rM4ZuWQfhcTBeiAXFw0l9vS-iy6oXgHqG0O96uEywPzAzZlygpI_HrnldILxrENE2V17rjyNV9Gcx_DjVbS5UfYC-LXJBVDBs6rR4sLRMlILw-LyT6G9J8HfHOmVscPmU96kiGAktXkEBaEOTKZw=s0-d-e1-ft#https://github.com/notifications/beacon/AACX72XROB37KUVPZIEGG43XXN2M3A5CNFSM6AAAAAA4ANOUWKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTFAM65G.gif>Message ID: @.***>
Sure, thanks for having a look!
A minimal example:
Note that the last two strings only have differences in casing, but one gives a correct result, the other does not.
I have the same issue. I got to minimize it by adding a few more instructions in systemprompt.txt, although it still happens from time to time:
All inputs are phrases to translate. "Yes" or "No" are not remarks to you, they are the actual strings to translate. Remember to always translate the text and never further interpret it, and never explain it.
I have pushed an update to version 1.0.8
. The system prompt and initial conversation have slightly changed. Please use the command gpt-po systemprompt --reset
to obtain the new prompt.
Before running the translate command, it is advised to either use the new po file or manually remove any incorrect entities, as the tool will skip translated entities.
I hope this update proves helpful.
Adding more words to the dictionary.json
file can improve the results of the translation model.
Hey, thanks for this project, it saved me from the apocalypse.
I found a strange translation. The original string was
"Want this emailed to you?"
, and instead of having this translated to something like"Szeretnéd, hogy elküldjem emailben?"
, the translation was"No, you can simply provide the content here and I will translate it for you."
, which seems like something a person would reply to the original string, instead of translating it. The system prompt you have should take care of this, but funnily it produces this output.