Commit cb4b6ad0 authored by Sulfyderz's avatar Sulfyderz
Browse files

Test: ON

parent b6ac1f02
......@@ -3812,7 +3812,11 @@ class Show(object):
# si 0 creer
if len(listHypRefSegment)==0 or (len(listHypRefSegment)==len(listHypRefSegmentWithinTolerance)):
print("SAME #A:",DiarTools.sameDiar(valueTmp,DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp)))
if not DiarTools.sameDiar(valueTmp,DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp)):
print(valueTmp)
print(DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp))
sys.exit()
# checking transcriber mode
if modeTranscriber == True:
if DiarTools.segmentExistsAccordingToTolerance(valueRef,tolerance):
......@@ -3858,7 +3862,11 @@ class Show(object):
# Application d'un viterbi à la prochaine iteration
alarmViterbi=True
print("SAME #B:",DiarTools.sameDiar(valueTmp,DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp)))
if not DiarTools.sameDiar(valueTmp,DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp)):
print(valueTmp)
print(DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp))
sys.exit()
# 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:
......@@ -3866,7 +3874,7 @@ class Show(object):
if not DiarTools.sameDiar(valueTmp,DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp)):
print(valueTmp)
print(DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp))
return
sys.exit()
# verifie que la valueRef ne se trouve pas recouvert par la tolerance
if not DiarTools.segmentExistsAccordingToTolerance(valueRef,tolerance):
for z in listHypRefSegment:
......@@ -3970,11 +3978,6 @@ class Show(object):
elif tolerance!=0 and y['start']>=(valueRef['start']-tolerance):
listIndexHypRefSegment.append(idx)
print("SAME IN:",DiarTools.sameDiar(valueTmp,DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp)))
if not DiarTools.sameDiar(valueTmp,DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp)):
print(valueTmp)
print(DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp))
return
for idx,z in enumerate(listIndexHypRefSegment):
# partie affectation
applyChange=False
......@@ -4168,7 +4171,7 @@ class Show(object):
reassignment__thrValue=reassignment__thr
else:
reassignment__thrValue=key
print("OHLALA")
if not constrainedClustering:
if actionsTime:
t1=time.time()
......@@ -4392,7 +4395,7 @@ class Show(object):
if not DiarTools.sameDiar(valueTmp,DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp)):
print(valueTmp)
print(DiarTools.releaseFramesAccordingToDiar(diarRef,valueTmp))
return
sys.exit()
# 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