From bdc9dba72c957d97788e533f9458ed03a4b0137b Mon Sep 17 00:00:00 2001 From: zqwerty Date: Tue, 23 Jun 2020 15:42:58 +0800 Subject: [PATCH] modify build message function for goal generation --- convlab2/human_eval/worlds.py | 2 +- convlab2/task/multiwoz/generate_goals.py | 45 ++++++++++++++++++++++++ convlab2/task/multiwoz/goal_generator.py | 8 ++++- 3 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 convlab2/task/multiwoz/generate_goals.py diff --git a/convlab2/human_eval/worlds.py b/convlab2/human_eval/worlds.py index 29a8bb95..70d86a1c 100755 --- a/convlab2/human_eval/worlds.py +++ b/convlab2/human_eval/worlds.py @@ -254,7 +254,7 @@ def __init__(self, opt, agent, except Exception as e: print(e) num_goal_trials += 1 - self.goal_message = goal_generator.build_message(self.goal) + self.goal_message, _ = goal_generator.build_message(self.goal) self.goal_text = '