DDMAL / text_alignment

Aligns correct transcripts to text images using a "messy" OCR and Needleman-Wunsch sequence alignment
MIT License
6 stars 1 forks source link

Infinite loop possible in latinSyllabification.syllabify_word #7

Open JRegimbal opened 4 years ago

JRegimbal commented 4 years ago

When the input to latinSyllabification.syllabify_word is the input cor*, the function never exits. It reaches the first while loop and never exits from it. At the point the while loop is called, word is ['cor'] and since the length of the array is 1 it never is modified and therefore never exits.

I'm not sure if the problem is in the implementation of this while loop or something before it.