Commit 15f655ce authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Correcting useless boundary create action.

parent bba89c53
......@@ -1516,7 +1516,10 @@ class Show(object):
if tolerance==0:
listTmp.append(y)
elif tolerance!=0 and y['start']>=(valueRef['start']-tolerance):
listTmp.append(y)
#NEW LALA
if not y['start']>=(valueRef['stop']-tolerance):
#NEW LALA
listTmp.append(y)
if not (not deleteBoundarySameConsecutiveSpk and listTmp[0]['cluster']==listTmp[1]['cluster']):
actionsSegmentationBoundaryMergeThr.append(copy.deepcopy([listTmp[0],listTmp[1]]))
if actionsIncremental:
......@@ -2430,7 +2433,10 @@ class Show(object):
if tolerance==0:
listTmp.append(y)
elif tolerance!=0 and y['start']>=(valueRef['start']-tolerance):
listTmp.append(y)
#NEW LALA
if not y['start']>=(valueRef['stop']-tolerance):
#NEW LALA
listTmp.append(y)
if not (not deleteBoundarySameConsecutiveSpk and listTmp[0]['cluster']==listTmp[1]['cluster']):
actionsSegmentationBoundaryMergeThr.append(copy.deepcopy([listTmp[0],listTmp[1]]))
if actionsIncremental:
......@@ -3110,7 +3116,10 @@ class Show(object):
if tolerance==0:
listTmp.append(y)
elif tolerance!=0 and y['start']>=(valueRef['start']-tolerance):
listTmp.append(y)
#NEW LALA
if not y['start']>=(valueRef['stop']-tolerance):
#NEW LALA
listTmp.append(y)
if not (not deleteBoundarySameConsecutiveSpk and listTmp[0]['cluster']==listTmp[1]['cluster'] and valueRef['cluster'] in dictionary and listTmp[0]['cluster']==dictionary[valueRef['cluster']]):
actionsSegmentationBoundaryMergeThr.append(copy.deepcopy([listTmp[0],listTmp[1]]))
if actionsIncremental:
......@@ -4106,7 +4115,10 @@ class Show(object):
if tolerance==0:
listTmp.append(y)
elif tolerance!=0 and y['start']>=(valueRef['start']-tolerance):
listTmp.append(y)
#NEW LALA
if not y['start']>=(valueRef['stop']-tolerance):
#NEW LALA
listTmp.append(y)
if not (not deleteBoundarySameConsecutiveSpk and listTmp[0]['cluster']==listTmp[1]['cluster'] and valueRef['cluster'] in dictionary and listTmp[0]['cluster']==dictionary[valueRef['cluster']]):
actionsSegmentationBoundaryMergeThr.append(copy.deepcopy([listTmp[0],listTmp[1]]))
if actionsIncremental:
......
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