tatk.dst.rule.crosswoz package

Submodules

tatk.dst.rule.crosswoz.dst module

class tatk.dst.rule.crosswoz.dst.RuleDST

Bases: tatk.dst.dst.DST

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

Attributes:
state(dict):

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

__init__()

Initialize self. See help(type(self)) for accurate signature.

init_session(state=None)

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

query()
update(usr_da=None)

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

tatk.dst.rule.crosswoz.evaluate module

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