From 37d5d8bb885c68f614e08936b2c064abfd82fbcf Mon Sep 17 00:00:00 2001
From: Hsien-Chin Lin <linh@hhu.de>
Date: Tue, 6 Dec 2022 00:04:38 +0100
Subject: [PATCH] wip

---
 convlab/policy/emoTUS/evaluate.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/convlab/policy/emoTUS/evaluate.py b/convlab/policy/emoTUS/evaluate.py
index a8a59da8..d67a1e1a 100644
--- a/convlab/policy/emoTUS/evaluate.py
+++ b/convlab/policy/emoTUS/evaluate.py
@@ -276,12 +276,13 @@ def main():
         if args.do_semantic:
             eval.evaluation(args.input_file)
         if args.do_nlg:
-            nlg_result = eval.nlg_evaluation(input_file=args.input_file,
-                                             generated_file=args.generated_file,
-                                             golden=args.do_golden_nlg)
             if args.generated_file:
                 generated_file = args.generated_file
             else:
+                nlg_result = eval.nlg_evaluation(input_file=args.input_file,
+                                                 generated_file=args.generated_file,
+                                                 golden=args.do_golden_nlg)
+
                 generated_file = nlg_result
             eval.evaluation(args.input_file,
                             generated_file)
-- 
GitLab