tatk.util.crosswoz package

Submodules

tatk.util.crosswoz.dbquery module

from tatk.util.crosswoz.dbquery import Database db = Database() db.query(state[‘belief_state’], cur_domain)

class tatk.util.crosswoz.dbquery.Database

Bases: object

docstring for Database

__init__()

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

query(belief_state, cur_domain)

query database using belief state, return list of entities, same format as database :param belief_state: state[‘belief_state’] :param cur_domain: maintain by DST, current query domain :return: list of entities

query_schema(field, args)
tatk.util.crosswoz.dbquery.contains(arr, s)

tatk.util.crosswoz.lexicalize module

tatk.util.crosswoz.lexicalize.delexicalize_da(da)
tatk.util.crosswoz.lexicalize.lexicalize_da(da, cur_domain, entities)

tatk.util.crosswoz.state module

tatk.util.crosswoz.state.default_state()