Fix bug into translate_transcriptions
Browse filesChange regular expression to capture whe there are time mark
translate_transcriptions.py
CHANGED
@@ -50,7 +50,7 @@ def main(transcription_file, source_languaje, target_languaje, translate_model,
|
|
50 |
for line in transcription:
|
51 |
if re.match(r"\d+$", line):
|
52 |
translate_transcription += f"{line}\n"
|
53 |
-
elif re.match(r"\d\d:\d\d:\d\d,\d
|
54 |
translate_transcription += f"{line}\n"
|
55 |
elif re.match(r"^$", line):
|
56 |
translate_transcription += f"{line}\n"
|
|
|
50 |
for line in transcription:
|
51 |
if re.match(r"\d+$", line):
|
52 |
translate_transcription += f"{line}\n"
|
53 |
+
elif re.match(r"\d\d:\d\d:\d\d,\d+ --> \d\d:\d\d:\d\d,\d+", line):
|
54 |
translate_transcription += f"{line}\n"
|
55 |
elif re.match(r"^$", line):
|
56 |
translate_transcription += f"{line}\n"
|