cati commited on
Commit
4ca8758
1 Parent(s): 5af8dc3
Files changed (1) hide show
  1. vowel_length.py +3 -3
vowel_length.py CHANGED
@@ -108,9 +108,9 @@ def runan(kwd,spl,aln,vck,dat,csvs):
108
  return "EXCLUDED WORD FOR THIS ALIGNMENT TYPE"
109
  d = dat
110
  if spl == 'l1':
111
- d = [l for l in dat if l[8].lower() == 'icelandic']
112
  if spl == 'l2':
113
- d = [l for l in dat if l[8].lower() != 'icelandic']
114
  prinfo = get_vc_dur(kwd,aln,d,vcd,csvs)
115
  if len(prinfo) >5:
116
  r,f = displ(prinfo,kwd)
@@ -132,7 +132,7 @@ def setup(metadatas,phkey,align_csvs):
132
  for tsv in metas:
133
  dat += tsv
134
 
135
- vck = read_ph_key(ph_key)
136
  kws = sorted(list(vck['ctc'].keys()))
137
 
138
  with open(align_csvs, 'rb') as handle:
 
108
  return "EXCLUDED WORD FOR THIS ALIGNMENT TYPE"
109
  d = dat
110
  if spl == 'l1':
111
+ d = [l for l in d if l[8].lower() == 'icelandic']
112
  if spl == 'l2':
113
+ d = [l for l in d if l[8].lower() != 'icelandic']
114
  prinfo = get_vc_dur(kwd,aln,d,vcd,csvs)
115
  if len(prinfo) >5:
116
  r,f = displ(prinfo,kwd)
 
132
  for tsv in metas:
133
  dat += tsv
134
 
135
+ vck = read_ph_key(phkey)
136
  kws = sorted(list(vck['ctc'].keys()))
137
 
138
  with open(align_csvs, 'rb') as handle: