Commit bf5dffd9 authored by Sulfyderz's avatar Sulfyderz
Browse files

Test: ON

parent c578682e
......@@ -3862,6 +3862,7 @@ class Show(object):
# si 1 alors affectation + move bound si besoin/et ou create bound sur stop
# si > 1 alors affectation + move bound si besoin/et ou create bound sur stop + merge
else:
print("SAME IN:",DiarTools.sameDiar(valueTmp,diarRef))
# verifie que la valueRef ne se trouve pas recouvert par la tolerance
if not DiarTools.segmentExistsAccordingToTolerance(valueRef,tolerance):
for z in listHypRefSegment:
......@@ -3924,7 +3925,7 @@ class Show(object):
valueTmp=DiarTools.dropSegment(u,valueTmp)
elif u['start']>=(valueRef['stop']+tolerance):
break
print("SAME OUT1:",DiarTools.sameDiar(valueTmp,diarRef))
else:
# permet de savoir si on fait les traitements pour des segments avec des mauvaises frontieres
perfectBoundary=False
......@@ -3966,6 +3967,8 @@ class Show(object):
elif tolerance!=0 and y['start']>=(valueRef['start']-tolerance):
listIndexHypRefSegment.append(idx)
print("SAME OUT2:",DiarTools.sameDiar(valueTmp,diarRef))
for idx,z in enumerate(listIndexHypRefSegment):
# partie affectation
applyChange=False
......@@ -4277,7 +4280,7 @@ class Show(object):
valueTmp.sort()
print("SAME IN:",DiarTools.sameDiar(valueTmp,diarRef))
if not perfectBoundary:
# recupere les segments nouveaux, modifiés par les etapes precedentes.
listHypRefSegment=list()
......@@ -4293,7 +4296,7 @@ class Show(object):
valueBoundaryStart=copy.deepcopy(y['stop'])
if valueBoundaryStart is None:
valueBoundaryStart=valueRef['start']
print("SAME IN2:",DiarTools.sameDiar(valueTmp,diarRef))
# checking transcriber mode
if modeTranscriber == False:
for idx,z in enumerate(listHypRefSegment):
......@@ -4340,7 +4343,7 @@ class Show(object):
boundStop=valueRef['stop']
else:
boundStop=z['stop']
print("SAME IN3:",DiarTools.sameDiar(valueTmp,diarRef))
# recupere les segments nouveaux, modifiés par les etapes precedentes.
listHypRefSegment=list()
for y in valueTmp:
......@@ -4379,7 +4382,6 @@ class Show(object):
if actionsIncremental:
actionsIncrementalSegmentationBoundaryMergeThrTurn.append(copy.deepcopy([newSegment,listTmp[y]]))
newSegment,valueTmp=DiarTools.mergeSegment(newSegment,listTmp[y],valueTmp)
print("SAME OUT:",DiarTools.sameDiar(valueTmp,diarRef))
# MAJ diar
value=valueTmp
......
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