Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emoUS-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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
dsml
emoUS-public
Commits
aafdb765
Commit
aafdb765
authored
2 years ago
by
Carel van Niekerk
Browse files
Options
Downloads
Patches
Plain Diff
Fix SUMBT import in test_SUMBT-LaRL.py
parent
b5eae17f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/agent_examples/test_SUMBT-LaRL.py
+4
-4
4 additions, 4 deletions
examples/agent_examples/test_SUMBT-LaRL.py
with
4 additions
and
4 deletions
examples/agent_examples/test_SUMBT-LaRL.py
+
4
−
4
View file @
aafdb765
# available NLU models
# available NLU models
# from convlab.nlu.svm.multiwoz import SVMNLU
# from convlab.nlu.svm.multiwoz import SVMNLU
from
convlab.nlu.jointBERT.
multiwoz
import
BERTNLU
from
convlab.nlu.jointBERT.
unified_datasets
import
BERTNLU
# from convlab.nlu.milu.multiwoz import MILU
# from convlab.nlu.milu.multiwoz import MILU
# available DST models
# available DST models
# from convlab.dst.rule.multiwoz import RuleDST
# from convlab.dst.rule.multiwoz import RuleDST
# from convlab.dst.mdbt.multiwoz import MDBT
# from convlab.dst.mdbt.multiwoz import MDBT
from
convlab.dst.sumbt
.multiwoz
import
SUMBT
from
convlab.dst.
set
sumbt
import
Set
SUMBT
Tracker
# from convlab.dst.trade.multiwoz import TRADE
# from convlab.dst.trade.multiwoz import TRADE
# from convlab.dst.comer.multiwoz import COMER
# from convlab.dst.comer.multiwoz import COMER
# available Policy models
# available Policy models
...
@@ -44,7 +44,7 @@ def test_end2end():
...
@@ -44,7 +44,7 @@ def test_end2end():
# BERT nlu
# BERT nlu
sys_nlu
=
None
sys_nlu
=
None
# simple rule DST
# simple rule DST
sys_dst
=
SUMBT
(
)
sys_dst
=
Set
SUMBT
Tracker
(
model_type
=
'
bert
'
,
model_path
=
"
path/to/sumbt/checkpoint
"
)
# rule policy
# rule policy
sys_policy
=
LaRL
()
sys_policy
=
LaRL
()
# template NLG
# template NLG
...
@@ -53,7 +53,7 @@ def test_end2end():
...
@@ -53,7 +53,7 @@ def test_end2end():
sys_agent
=
PipelineAgent
(
sys_nlu
,
sys_dst
,
sys_policy
,
sys_nlg
,
name
=
'
sys
'
)
sys_agent
=
PipelineAgent
(
sys_nlu
,
sys_dst
,
sys_policy
,
sys_nlg
,
name
=
'
sys
'
)
# BERT nlu trained on sys utterance
# BERT nlu trained on sys utterance
user_nlu
=
BERTNLU
(
mode
=
'
sys
'
,
config_file
=
'
multiwoz_sys_context.json
'
,
user_nlu
=
BERTNLU
(
mode
=
'
sys
'
,
config_file
=
'
multiwoz
21
_sys_context.json
'
,
model_file
=
'
https://huggingface.co/ConvLab/ConvLab-2_models/resolve/main/bert_multiwoz_sys_context.zip
'
)
model_file
=
'
https://huggingface.co/ConvLab/ConvLab-2_models/resolve/main/bert_multiwoz_sys_context.zip
'
)
# not use dst
# not use dst
user_dst
=
None
user_dst
=
None
...
...
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