Commit f035d067 authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Adapting the method automatonSegmentationAssignment from diar_tools.

parent 4bed0047
......@@ -1071,13 +1071,11 @@ def automatonSegmentationAssignment(diarHyp,diarRef,diarUem=None,tolerance=0,mod
actionsIncrementalAssignmentCreateTurn.append(copy.deepcopy([valueRef['cluster'],z['cluster'],copy.deepcopy(z)]))
else:
if z['cluster'] == dictionary[valueRef['cluster']]:
if (modeNoGap == True and idx==0) or (modeNoGap == False):
actionsAssignmentNothing.append(copy.deepcopy(z))
actionsIncrementalAssignmentNothingTurn.append(copy.deepcopy(z))
actionsAssignmentNothing.append(copy.deepcopy(z))
actionsIncrementalAssignmentNothingTurn.append(copy.deepcopy(z))
else:
if (modeNoGap == True and idx==0) or (modeNoGap == False):
actionsAssignmentChange.append(copy.deepcopy([dictionary[valueRef['cluster']],z]))
actionsIncrementalAssignmentChangeTurn.append(copy.deepcopy([dictionary[valueRef['cluster']],z]))
actionsAssignmentChange.append(copy.deepcopy([dictionary[valueRef['cluster']],z]))
actionsIncrementalAssignmentChangeTurn.append(copy.deepcopy([dictionary[valueRef['cluster']],z]))
applyChange=True
if applyChange:
# Updates the diar for the merges afterward
......
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