lewangdev / autotranslate

Videos Transcription and Translation with Faster Whisper and ChatGPT
Apache License 2.0
234 stars 37 forks source link

Problems with broken sentences in the bilingual subtitles generated #2

Open junruizh2021 opened 1 year ago

junruizh2021 commented 1 year ago

Hi @lewangdev, thanks so much for your script. Sometimes I encounter problems with broken sentences in the bilingual subtitles generated during the process, resulting in some source language subtitles missing translated subtitles. Have you ever encountered this situation? image

Supplementing a bit, I am using a third-party API, not OpenAI API.

lewangdev commented 1 year ago

Yes, I have also seen this issue. Currently, the translation still requires manual intervention.

This problem is caused by the GPT-3.5. The prompt I am using currently unable to execute as expected with 100% accuracy. In my script, I set the default temperature to 0, and it will always get the same answer after retry multiple times.

Some approaches I thought to sovle this problem:

  1. set temperature to 0.7~1
  2. A better prompt
  3. Use GPT-4
  4. Human involving
lewangdev commented 1 year ago

I will attempt to resolve this issue using OpenAI Function-Calling.