Skip to content

Commit

Permalink
fixed an item-lost bug when exporting to textgrid (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
fncokg authored Jun 4, 2024
1 parent 76c46a1 commit 945424c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions montreal_forced_aligner/textgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ def process_utterance_data():
if phone_data:
process_phone_data()
current_file_id = pi_current_file_id
phone_data = []
else:
break
for wi_begin, wi_end, word, wi_speaker_name, wi_file_id in word_intervals:
Expand Down Expand Up @@ -417,9 +418,9 @@ def process_utterance_data():
)
export_textgrid(data, output_path, file_duration, frame_shift, output_format)
yield output_path
word_data = []
phone_data = []
utterance_data = []
# word_data = []
# phone_data = []
# utterance_data = []


def construct_output_path(
Expand Down

0 comments on commit 945424c

Please sign in to comment.