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

release 250 test data

parent a7eb77de
No related branches found
No related tags found
No related merge requests found
...@@ -6,9 +6,13 @@ import zipfile ...@@ -6,9 +6,13 @@ import zipfile
def load_test_data(subtask): def load_test_data(subtask):
from convlab2 import DATA_ROOT from convlab2 import DATA_ROOT
data_dir = os.path.join(DATA_ROOT, 'multiwoz_zh' if subtask == 'multiwoz' else 'crosswoz_en') data_dir = os.path.join(DATA_ROOT, 'multiwoz_zh' if subtask == 'multiwoz' else 'crosswoz_en')
# the filename will change to test file during testing phase # test public data currently
zip_filename = os.path.join(data_dir, 'human_val.json.zip') # to check if this script works properly with your code when label information is
return json.load(zipfile.ZipFile(zip_filename).open('human_val.json')) # not available, you may need to fill the missing fields yourself (with any value)
zip_filename = os.path.join(data_dir, 'dstc9-test-250.zip')
test_data = json.load(zipfile.ZipFile(zip_filename).open('data.json'))
assert len(test_data) == 250
return test_data
def prepare_data(subtask): def prepare_data(subtask):
......
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment