agenda_based_simulator¶
Agenda-based user simulator from [Zhang and Balog, KDD’20].
Classes¶
Initializes the agenda-based simulated user. |
Module Contents¶
- class agenda_based_simulator.AgendaBasedSimulator(id: str, domain: usersimcrs.core.simulation_domain.SimulationDomain, item_collection: usersimcrs.items.item_collection.ItemCollection, preference_model: usersimcrs.user_modeling.preference_model.PreferenceModel, interaction_model: usersimcrs.simulator.agenda_based.interaction_model.InteractionModel, nlu: dialoguekit.nlu.NLU, nlg: dialoguekit.nlg.ConditionalNLG, ratings: usersimcrs.items.ratings.Ratings)¶
Bases:
usersimcrs.simulator.user_simulator.UserSimulator
Initializes the agenda-based simulated user.
- Parameters:
id – Simulator ID.
domain – Domain.
item_collection – Item collection.
preference_model – Preference model.
interaction_model – Interaction model.
nlu – NLU module performing dialogue act extraction.
nlg – NLG module generating textual responses.
ratings – Historical ratings.
- generate_response(agent_utterance: dialoguekit.core.utterance.Utterance) dialoguekit.core.annotated_utterance.AnnotatedUtterance ¶
Generates response to the agent’s utterance.
- Parameters:
agent_utterance – Agent utterance.
- Returns:
User utterance.