bootphon / phonemizer

Simple text to phones converter for multiple languages
https://bootphon.github.io/phonemizer/
GNU General Public License v3.0
1.23k stars 172 forks source link

Bug in processing some characters. #39

Closed erogol closed 4 years ago

erogol commented 4 years ago

The phonemizer 2.1 raises error when I call it the following sentence

'Truly replied, "Yes."'

  File "/home/erogol/miniconda3/lib/python3.7/site-packages/phonemizer-2.1-py3.7.egg/phonemizer/punctuation.py", line 166, in _restore_aux
    [text[0] + m.mark + text[1]] + text[2:], marks[1:], n)
IndexError: list index out of range