convlab2.policy.vhus.camrest package

Submodules

convlab2.policy.vhus.camrest.train module

@author: truthless

convlab2.policy.vhus.camrest.usermanager module

@author: keshuichonglx

class convlab2.policy.vhus.camrest.usermanager.UserDataManager

Bases: object

data_loader()
data_loader_seg()
get_goal_id(goal)
get_sysda_id(sys_das)
get_usrda_id(usr_das)
get_voc_size()
id2sentence(ids)
org_data_loader()
static query_goal_for_sys(slot, value, goal)
static query_goal_for_usr(slot, value, goal)
static ref_data2stand(da)
static sysda2seq(sys_da: dict, goal: dict)
static train_test_val_split(goals, usr_dass, sys_dass, test_size=0.1, val_size=0.1)
static train_test_val_split_seg(goals_seg, usr_dass_seg, sys_dass_seg, test_size=0.1, val_size=0.1)
static usrda2seq(usr_da: dict, goal: dict)
static usrgoal2seq(goal: dict)
static usrseq2da(usr_seq: list, goal: dict)
vocab_loader()

convlab2.policy.vhus.camrest.vhus module

class convlab2.policy.vhus.camrest.vhus.UserPolicyVHUS(archive_file='/home/travis/build/thu-coai/ConvLab-2/convlab2/policy/vhus/camrest/models/vhus_simulator_camrest.zip', model_file='https://convlab.blob.core.windows.net/convlab-2/vhus_simulator_camrest.zip')

Bases: convlab2.policy.vhus.vhus.UserPolicyVHUSAbstract

Module contents