From 1fda17dbb72dc46589b6796013bd4c042030fad1 Mon Sep 17 00:00:00 2001 From: Josef Fruehwald Date: Thu, 29 Oct 2020 14:31:23 -0400 Subject: [PATCH] had to fix find overlaps for mfa --- FAVE-extract/bin/extractFormants.py | 2 +- FAVE-extract/config.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/FAVE-extract/bin/extractFormants.py b/FAVE-extract/bin/extractFormants.py index 47bc90e..bf96f5e 100755 --- a/FAVE-extract/bin/extractFormants.py +++ b/FAVE-extract/bin/extractFormants.py @@ -261,7 +261,7 @@ def addOverlaps(words, tg, speaker): # if boundaries overlap and interval not empty if ((((i.xmin() <= p.xmin) or (p.xmin <= i.xmin() <= p.xmax)) and ((i.xmax() >= p.xmax) or (p.xmin <= i.xmax() <= p.xmax))) - and i.mark().upper() != "SP"): + and not i.mark().upper() in ["SP","sil",""]): p.overlap = True pointer[sn] += 1 # go back one interval, since the last interval needs diff --git a/FAVE-extract/config.txt b/FAVE-extract/config.txt index 3acd688..a9c677d 100644 --- a/FAVE-extract/config.txt +++ b/FAVE-extract/config.txt @@ -11,3 +11,4 @@ faav --remeasure --vowelSystem phila +--mfa