Skip to content

Commit

Permalink
change the separate marks for rttms
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesICL authored Dec 14, 2018
1 parent f58da3e commit 93991b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vcm_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def main(audio_file, yun_rttm_file, vcm_rttm_file, mean_var, vcm_model):
# process each segment one by one. If it is infant vocalisation, do vcm
with open(yun_rttm_file, 'r') as yf:
for line in yf.readlines():
els = line.split('\t')
els = line.split()
file, onset, dur, cls, conf = els[1], els[3], els[4], els[7], els[8]
if 'CHI' in els[7]:
audio_segment = '{}/{}_{}_{}.wav'.format(tmpdir, file.replace('.rttm', ''), onset, dur)
Expand Down

0 comments on commit 93991b0

Please sign in to comment.