Commit f75cbf96 authored by Anthony Larcher's avatar Anthony Larcher
Browse files

minor bug

parent d857996d
...@@ -333,18 +333,19 @@ def cross_show_HAL(previous_vec, ...@@ -333,18 +333,19 @@ def cross_show_HAL(previous_vec,
# Get the time of the middle of the longest segment for the longest seg within_diar_id in within_diar # Get the time of the middle of the longest segment for the longest seg within_diar_id in within_diar
tmp_diar = copy.deepcopy(within_diar) tmp_diar = copy.deepcopy(within_diar)
tmp_diar.filter("cluster", "==", current_speaker_name).add_duration().sort("duration", reverse=True) tmp_diar.filter("cluster", "==", current_speaker_name).add_duration().sort(["duration"], reverse=True)
show1 = tmp_diar[0]["show"] show1 = tmp_diar[0]["show"]
t1 = (tmp_diar[0]["stop"] - tmp_diar[0]["start"]) // 2 t1 = (tmp_diar[0]["stop"] - tmp_diar[0]["start"]) // 2
# Get the time of the middle of the longest segment for previous_diar_id in previous_diar # Get the time of the middle of the longest segment for previous_diar_id in previous_diar
tmp_diar = copy.deepcopy(previous_diar) tmp_diar = copy.deepcopy(previous_diar)
tmp_diar.filter("cluster", "==", previous_spk_name).add_duration().sort("duration", reverse=True) tmp_diar.filter("cluster", "==", previous_spk_name).add_duration().sort(["duration"], reverse=True)
show2 = tmp_diar[0]["show"] show2 = tmp_diar[0]["show"]
t2 = (tmp_diar[0]["stop"] - tmp_diar[0]["start"]) // 2 t2 = (tmp_diar[0]["stop"] - tmp_diar[0]["start"]) // 2
# Ask the question to the user # Ask the question to the user
complete_hyp = copy.deepcopy(previous_diar).append_diar(within_diar) complete_hyp = copy.deepcopy(previous_diar)
complete_hyp.append_diar(within_diar)
message_to_user = MessageToUser(file_info, message_to_user = MessageToUser(file_info,
s4d_to_allies(complete_hyp), s4d_to_allies(complete_hyp),
Request('same', t1, t2, show2)) Request('same', t1, t2, show2))
...@@ -422,9 +423,7 @@ def allies_cross_show_clustering(show_idx, ...@@ -422,9 +423,7 @@ def allies_cross_show_clustering(show_idx,
th_x=th_x, th_x=th_x,
lim=lim, lim=lim,
user=user, user=user,
file_info=file_info, file_info=file_info)
uem=uem,
ref=ref)
else: else:
previous_vec, previous_diar, current_diar = cross_show(previous_vec=archive_vectors["previous_vec"], previous_vec, previous_diar, current_diar = cross_show(previous_vec=archive_vectors["previous_vec"],
previous_diar=archive_vectors["previous_diar"], previous_diar=archive_vectors["previous_diar"],
......
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