From aedd10659765f575b0d0a1cc767054488bc13567 Mon Sep 17 00:00:00 2001
From: zhuqi <zqwerty@users.noreply.github.com>
Date: Wed, 7 Jul 2021 20:52:23 +0800
Subject: [PATCH] fix template nlg dialog act order (#206)

* fixed spacy load en_core_web_sm when using BERTNLU for MultiWOZ

* fix template nlg dialog act order, #204
---
 convlab2/nlg/template/multiwoz/nlg.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/convlab2/nlg/template/multiwoz/nlg.py b/convlab2/nlg/template/multiwoz/nlg.py
index 9cb0f26d..46c5f015 100755
--- a/convlab2/nlg/template/multiwoz/nlg.py
+++ b/convlab2/nlg/template/multiwoz/nlg.py
@@ -99,7 +99,7 @@ class TemplateNLG(NLG):
             new_action += new_action_group['general']['other']
             del new_action_group['general']
         for domain in new_action_group:
-            for k in ['nooffer', 'inform-name', 'inform-other', 'request', 'other']:
+            for k in ['other', 'request', 'inform-other', 'inform-name', 'nooffer']:
                 new_action = new_action_group[domain][k] + new_action
         return new_action
 
-- 
GitLab