Skip to content
Snippets Groups Projects
Commit 81324d3d authored by Hsien-Chin Lin's avatar Hsien-Chin Lin
Browse files

wip

parent 2ae7cb7d
No related branches found
No related tags found
No related merge requests found
...@@ -247,11 +247,11 @@ class Evaluator: ...@@ -247,11 +247,11 @@ class Evaluator:
# full action # full action
for gen_act, golden_act in zip(gen_acts, golden_acts): for gen_act, golden_act in zip(gen_acts, golden_acts):
s = f1_measure(preds=gen_act, labels=golden_act) s = f1_measure(preds=gen_act, labels=golden_act)
for metric in scores: for metric in scores["complete"]:
scores["complete"][metric].append(s[metric]) scores["complete"][metric].append(s[metric])
s = f1_measure(preds=self._intent_domain(gen_act), s = f1_measure(preds=self._intent_domain(gen_act),
labels=self._intent_domain(golden_act)) labels=self._intent_domain(golden_act))
for metric in scores: for metric in scores["intent_domain"]:
scores["intent_domain"][metric].append(s[metric]) scores["intent_domain"][metric].append(s[metric])
result = {} result = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment