Skip to content

nagaraju291990/subtitle-aligner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subtitle-aligner

To Run(based on sentence aligned text)

python3 main2.py  -i FMFS-module-01-subtitle.srt -s=FMFS-module-01-transcription-clean-text.txt -t=FMFS-module-01-transcription-clean-text_eng_hin-postedited.txt > output.srt

To use heuristics approach

python3 main2.py  -i FMFS-module-01-subtitle.srt -s=FMFS-module-01-transcription-clean-text.txt -t=FMFS-module-01-transcription-clean-text_eng_hin-postedited.txt -m=y > output.srt

To Run(based on word count herutistics)

python3 main.py --t=FMFS-module-01-transcription-clean-text_eng_hin-postedited.txt -s=FMFS-module-01-subtitle.srt

output file will be created in output.srt

To break each subtitle into two lines

python3 break_half.py output.srt

To break each subtitle into two lines with terms for Hindi/Telugu...

python3 break_half_for_terms.py output.srt

About

align parallel translation with English subtitle file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages