Skip to content

fix: ooTextFile should handle tabs in addition to spaces#32

Open
kalvinchang wants to merge 2 commits intonltk:masterfrom
kalvinchang:patch-1
Open

fix: ooTextFile should handle tabs in addition to spaces#32
kalvinchang wants to merge 2 commits intonltk:masterfrom
kalvinchang:patch-1

Conversation

@kalvinchang
Copy link

Currently, TextGrid.tiers is empty when faced with a file with tabs instead of spaces, such as CORAAL's forced alignment http://lingtools.uoregon.edu/coraal/aligned/.

from textgrid import TextGrid
file = "data/coraal/aligned/DCB_MFA_2019.06.19/DCB_se1_ag1_f_01_1.TextGrid"
grid = TextGrid(open(file).read())
print(grid.tiers)

is empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant