Commit bc53b545 authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Correcting the FRFA method from diar_tools.

parent 328fe1a2
......@@ -1773,13 +1773,13 @@ def FRFA(diarHyp,diarRef,diarUem=None,tolerance=25,cluster="fillFRFA"):
h=(segPre.compute_components(reference=reference, hypothesis=hypothesis))
r=(segPre.compute_components(reference=reference, hypothesis=reference))
d=dict()
d['FA']=h['number of boundaries']-h['number of matches']
d['FR']=r['number of boundaries']-h['number of matches']
d['FA']=int(h['number of boundaries']-h['number of matches'])
d['FR']=int(r['number of boundaries']-h['number of matches'])
if d['FA']<0:
d['FA']=0
if d['FR']<0:
d['FR']=0
d['MATCH']=h['number of matches']
d['MATCH']=int(h['number of matches'])
return d
# Returns a dict object with the human corrections to do on the diarHyp parameter according to the diarRef and diarUem parameters
......
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