Skip to content

Commit d226221

Browse files
committed
perf: tuck away imports not needed to display cli help
1 parent e4311d7 commit d226221

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aligner/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import re
22

3-
from pympi.Praat import TextGrid
4-
53

64
class TextHash(dict):
75
def __init__(self, sentence_list, transducer):
@@ -54,6 +52,8 @@ def read_text(text_path):
5452

5553

5654
def create_text_grid_from_segments(segments, seg_name, frame_ratio, sample_rate=16000):
55+
from pympi.Praat import TextGrid
56+
5757
xmax = (frame_ratio * segments[-1].end) / sample_rate
5858
tg = TextGrid(xmax=xmax)
5959
value_tier = tg.add_tier(seg_name)

0 commit comments

Comments
 (0)