Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TUS_public
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
dsml
TUS_public
Commits
fb51470c
Commit
fb51470c
authored
Sep 22, 2020
by
function2
Browse files
Options
Downloads
Patches
Plain Diff
release 250 test data
parent
a7eb77de
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
convlab2/dst/dstc9/utils.py
+7
-3
7 additions, 3 deletions
convlab2/dst/dstc9/utils.py
data/crosswoz_en/dstc9-test-250.zip
+0
-0
0 additions, 0 deletions
data/crosswoz_en/dstc9-test-250.zip
data/multiwoz_zh/dstc9-test-250.zip
+0
-0
0 additions, 0 deletions
data/multiwoz_zh/dstc9-test-250.zip
with
7 additions
and
3 deletions
convlab2/dst/dstc9/utils.py
+
7
−
3
View file @
fb51470c
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
data/crosswoz_en/dstc9-test-250.zip
0 → 100644
+
0
−
0
View file @
fb51470c
File added
This diff is collapsed.
Click to expand it.
data/multiwoz_zh/dstc9-test-250.zip
0 → 100644
+
0
−
0
View file @
fb51470c
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment