Commit 623faf33 authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Correcting the safeAnnotationDiar method in diar_tools.py.

parent 53df6051
......@@ -2163,7 +2163,8 @@ def rmOvlpSegments(diar, epsilon):
return diar
# Returns a diar object with safe annotation according to the diarUem parameter
# Returns a diar object with safe annotation according to the diarUem parameter
## WARNING: Without overlapped segments or speech turn < "withoutSpeechTurn" or the number of followed segments < "segmentFollowed"
## withoutSpeechTurn: In centiseconds
def safeAnnotationDiar(diar,diarUem=None,addNoise=True,segmentFollowed=None,withoutSpeechTurn=100):
assert isinstance(withoutSpeechTurn,numbers.Number) and isinstance(diar,Diar) and (isinstance(diarUem,Diar) or diarUem is None) and (isinstance(segmentFollowed,numbers.Number) or segmentFollowed is None) and isinstance(addNoise,bool)
......@@ -2202,7 +2203,7 @@ def safeAnnotationDiar(diar,diarUem=None,addNoise=True,segmentFollowed=None,with
counter=0
diarTmp=Diar()
for i in diarOut:
i["cluster"]="area"
i["cluster"]="safeArea"
diarOut.pack()
return diarOut
......
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