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
73e230ca
Commit
73e230ca
authored
Apr 10, 2018
by
Sulfyderz
Browse files
[Error Update]:Correcting the diarUem parameter from the PurityCoverage method in diar_tools.
parent
976ff53a
Changes
1
Hide whitespace changes
Inline
Side-by-side
s4d/diar_tools.py
View file @
73e230ca
...
...
@@ -1967,9 +1967,12 @@ def PurityCoverage(diarHyp,diarRef,diarUem=None,tolerance=25,skip_overlap=False)
else
:
reference
[
s
,
2
]
=
seg
[
'cluster'
]
ref_uem
=
pyacore
.
Timeline
()
for
seg
in
diarUem
:
ref_uem
.
add
(
pyacore
.
Segment
(
seg
[
'start'
],
seg
[
'stop'
]))
if
diarUem
is
None
:
ref_uem
=
None
else
:
ref_uem
=
pyacore
.
Timeline
()
for
seg
in
diarUem
:
ref_uem
.
add
(
pyacore
.
Segment
(
seg
[
'start'
],
seg
[
'stop'
]))
hyp
=
pyacore
.
Annotation
()
for
seg
in
diarHyp
:
...
...
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