Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Lebourdais
s4d
Commits
f035d067
Commit
f035d067
authored
May 29, 2018
by
Sulfyderz
Browse files
[Error Update]:Adapting the method automatonSegmentationAssignment from diar_tools.
parent
4bed0047
Changes
1
Hide whitespace changes
Inline
Side-by-side
s4d/diar_tools.py
View file @
f035d067
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment