From d7a3327935168d8a9f8ee4a644ce76a2194ef3d3 Mon Sep 17 00:00:00 2001 From: Bluey Red <84193813+blueyred@users.noreply.github.com> Date: Tue, 2 May 2023 10:28:12 +0100 Subject: [PATCH] Update make_mfa_corpus.py Input to IntervalTier should have key name of "entries" see docs here http://timmahrt.github.io/praatIO/praatio/data_classes/interval_tier.html#IntervalTier.__init__ --- data/make_mfa_corpus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/make_mfa_corpus.py b/data/make_mfa_corpus.py index 0241bfc..4b0e421 100644 --- a/data/make_mfa_corpus.py +++ b/data/make_mfa_corpus.py @@ -27,7 +27,7 @@ def gen_textgrid(dataset, output, key): note_sequence.loc[i,'end'] = note_sequence.iloc[i+1]['start'] syllables = [praatio.utilities.constants.Interval(start, end, _process_syllable(syllable)) for (start, end, _, syllable) in note_sequence.values] - syllables_tier = praatio.data_classes.interval_tier.IntervalTier(name='1', entryList=syllables, minT=global_start, maxT=global_end) + syllables_tier = praatio.data_classes.interval_tier.IntervalTier(name='1', entries=syllables, minT=global_start, maxT=global_end) tgfile = praatio.data_classes.textgrid.Textgrid(global_start, global_end) tgfile.addTier(syllables_tier, 1)