Open mfaytak opened 11 months ago
As a small update, this occurs regardless of whether the file's encoding is correctly specified in the codec
parameter of pympi.Praat.TextGrid()
. The files with IPA characters turn out to be in UTF-16 for some reason, whereas all others are in ASCII. But specifying the correct codec doesn't actually solve the issue, whatever it is.
Expected behaviour Read in a textgrid (long format) using:
tg = pympi.Praat.TextGrid(path_to_textgrid)
Actual behaviour Throws an AttributeError (included below) and halts if the contents of any interval tier contain non-ASCII characters such as ɪ or ŋ or ɛ. All other TextGrids are imported without issues as expected.
System information
Offending notebook cell (which imports any TGs not containing ɛ or ɪ just fine):
Full traceback of the issue I am encountering is included below.