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
b974f805
Commit
b974f805
authored
Apr 10, 2018
by
Sulfyderz
Browse files
[Error Update]:Correcting the returned dict from the PurityCoverage method in diar_tools.
parent
73e230ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
s4d/diar_tools.py
View file @
b974f805
...
...
@@ -1982,7 +1982,7 @@ def PurityCoverage(diarHyp,diarRef,diarUem=None,tolerance=25,skip_overlap=False)
c
=
pyadiar
.
DiarizationCoverage
(
collar
=
tolerance
,
skip_overlap
=
skip_overlap
)
rtn
=
dict
()
rtn
[
"Purity"
]
=
p
.
compute_metric
(
p
.
compute_components
(
reference
,
hyp
,
ref_uem
))
*
100
rtn
[
"Cover"
]
=
c
.
compute_metric
(
c
.
compute_components
(
reference
,
hyp
,
ref_uem
))
*
100
rtn
[
"Cover
age
"
]
=
c
.
compute_metric
(
c
.
compute_components
(
reference
,
hyp
,
ref_uem
))
*
100
return
rtn
# Reads any file according the extension
...
...
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