convlab2.nlu.milu.multiwoz package

Submodules

convlab2.nlu.milu.multiwoz.nlu module

class convlab2.nlu.milu.multiwoz.nlu.MILU(archive_file='models/milu_multiwoz_all_context.tar.gz', cuda_device=- 1, model_file='https://convlab.blob.core.windows.net/convlab-2/new_milu(20200922)_multiwoz_all_context.tar.gz', context_size=3)

Bases: convlab2.nlu.nlu.NLU

Multi-intent language understanding model.

predict(utterance, context=[])

Predict the dialog act of a natural language utterance and apply error model. Args:

utterance (str): A natural language utterance.

Returns:

output (dict): The dialog act of utterance.

Module contents