Parse a TextGrid file passed in as an open
text stream, converting it to a dict
.
Helper function called by
parse()
.
- Parameters:
fp (TextIO) – Python text stream from an open TextGrid file.
keep_empty (bool) – If True, keep intervals in
interval tiers that have empty labels
(i.e., the empty string “”).
Default is False.
- Returns:
tg – A parsed TextGrid as a :class:`dict:.
- Return type:
dict