Commit 6a0211ff authored by Anthony Larcher's avatar Anthony Larcher
Browse files

new HAL cross show

parent 16069f8d
......@@ -309,6 +309,7 @@ def cross_show_HAL(previous_vec,
# For each speaker in the current file
for ii in range(previous_vec_mean.modelset.shape[0], ll_vec.modelset.shape[0]):
print(f"Look for matching of current speaker {ii}")
question_number = 0
......@@ -322,11 +323,15 @@ def cross_show_HAL(previous_vec,
# If one score is above th_x AND that the corresponding previous speaker is not locked
for jj, previous_spk_idx in enumerate(sorted_idx):
print(f"\tCompare to previous speaker jj")
previous_spk_name = ll_vec.modelset[previous_spk_idx]
# There are scores higher than the threshold
if sorted_scores_current_speaker[previous_spk_idx] > th_x:
print(f"\t\tSome scores are above the threshold")
if not ll_vec.modelset[previous_spk_idx] in previous_locked_spk:
# ---> link the speakers
linkage_speaker_dict[current_speaker_name] = ll_vec.modelset[previous_spk_idx]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment