From 5592f07c93709c7f11f8f5c740892ae73f8224ce Mon Sep 17 00:00:00 2001
From: function2 <function2@qq.com>
Date: Sun, 18 Oct 2020 10:16:37 +0800
Subject: [PATCH] make value lower

---
 convlab2/dst/dstc9/utils.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/convlab2/dst/dstc9/utils.py b/convlab2/dst/dstc9/utils.py
index 8a37f4b..aee6105 100644
--- a/convlab2/dst/dstc9/utils.py
+++ b/convlab2/dst/dstc9/utils.py
@@ -69,6 +69,7 @@ def unify_value(value, subtask):
             ret[i] = unify_value(v, subtask)
         return ret
 
+    value = value.lower()
     value = {
         'multiwoz': {
             '未提及': '',
@@ -77,9 +78,9 @@ def unify_value(value, subtask):
             '不是': '没有',
         },
         'crosswoz': {
-            'None': '',
+            'none': '',
         }
-    }[subtask].get(value, value).lower()
+    }[subtask].get(value, value)
 
     return ' '.join(value.strip().split())
 
-- 
GitLab