Skip to content
Snippets Groups Projects
Commit 5592f07c authored by function2's avatar function2
Browse files

make value lower

parent 42fb447c
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,7 @@ def unify_value(value, subtask): ...@@ -69,6 +69,7 @@ def unify_value(value, subtask):
ret[i] = unify_value(v, subtask) ret[i] = unify_value(v, subtask)
return ret return ret
value = value.lower()
value = { value = {
'multiwoz': { 'multiwoz': {
'未提及': '', '未提及': '',
...@@ -77,9 +78,9 @@ def unify_value(value, subtask): ...@@ -77,9 +78,9 @@ def unify_value(value, subtask):
'不是': '没有', '不是': '没有',
}, },
'crosswoz': { 'crosswoz': {
'None': '', 'none': '',
} }
}[subtask].get(value, value).lower() }[subtask].get(value, value)
return ' '.join(value.strip().split()) return ' '.join(value.strip().split())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment