Skip to content

Commit

Permalink
set old id
Browse files Browse the repository at this point in the history
  • Loading branch information
JoFrhwld committed Feb 25, 2024
1 parent 1cdb3a1 commit e39c6ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fave_syllabify/syllabify.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ def syllabify_tg(tg: AlignedTextGrid):
tg (AlignedTextGrid): The textgrid to syllabify
"""

for tgr in tg:
for p in tgr.Phone:
p.set_feature("old_id", p.id)

tg.interleave_class(
"SylPart",
above = "Phone",
Expand Down

0 comments on commit e39c6ea

Please sign in to comment.