Commit b974f805 authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Correcting the returned dict from the PurityCoverage method in diar_tools.

parent 73e230ca
......@@ -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["Coverage"]=c.compute_metric(c.compute_components(reference,hyp,ref_uem))*100
return rtn
# Reads any file according the extension
......
Markdown is supported
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