Skip to content
Snippets Groups Projects
Unverified Commit 3811af82 authored by 罗崚骁's avatar 罗崚骁 Committed by GitHub
Browse files

Merge pull request #149 from function2-llx/master

make value lower in evaluation
parents 42fb447c 5592f07c
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