convlab2.dst.rule.crosswoz package

Submodules

convlab2.dst.rule.crosswoz.dst module

class convlab2.dst.rule.crosswoz.dst.RuleDST

Bases: convlab2.dst.dst.DST

Rule based DST which trivially updates new values from NLU result to states.

Attributes:
state(dict):

Dialog state. Function convlab2.util.crosswoz.state.default_state returns a default state.

init_session(state=None)

Initialize self.state with a default state, which convlab2.util.crosswoz.state.default_state returns.

query()
update(usr_da=None)

update belief_state, cur_domain, request_slot :param usr_da: :return:

convlab2.dst.rule.crosswoz.evaluate module

convlab2.dst.rule.crosswoz.evaluate.calculateJointState(predict_golden)
convlab2.dst.rule.crosswoz.evaluate.calculateSlotState(predict_golden)
convlab2.dst.rule.crosswoz.evaluate.read_zipped_json(filepath, filename)
convlab2.dst.rule.crosswoz.evaluate.test_sys_state(data, goal_type)

Module contents