convlab2.util.crosswoz package

Submodules

convlab2.util.crosswoz.dbquery module

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

class convlab2.util.crosswoz.dbquery.Database

Bases: object

docstring for Database

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)
convlab2.util.crosswoz.dbquery.contains(arr, s)

convlab2.util.crosswoz.lexicalize module

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

convlab2.util.crosswoz.state module

convlab2.util.crosswoz.state.default_state()

Module contents