Commit 23a4f57a authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Correcting the getFRFA method from DiarTools.

parent d91f2e42
......@@ -1078,11 +1078,11 @@ def getFRFA(diarHyp,diarRef,diarUem=None,tolerance=0.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
Supports Markdown
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