convlab2.e2e.sequicity.camrest package

Submodules

convlab2.e2e.sequicity.camrest.sequicity module

Sequicity is an end-to-end task-oriented dialog system based on a single sequence-to-sequence model that uses belief span to track dialog believes. We adapt the code from github to work in multiwoz corpus.

Reference:

Lei, W., Jin, X., Kan, M. Y., Ren, Z., He, X., & Yin, D. (2018, July). Sequicity: Simplifying task-oriented dialogue systems with single sequence-to-sequence architectures. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) (pp. 1437-1447).

class convlab2.e2e.sequicity.camrest.sequicity.Sequicity(model_file='https://convlab.blob.core.windows.net/convlab-2/sequicity_camrest.zip')

Bases: convlab2.dialog_agent.agent.Agent

init_session()

Reset the class variables to prepare for a new session.

response(usr)

Generate agent response given user input.

Args:
observation (str):

The input to the agent.

Returns:
response (str):

The response generated by the agent.

z2degree(gen_z)
convlab2.e2e.sequicity.camrest.sequicity.denormalize(uttr)

Module contents