chaitjo / personalized-dialog

Code for the paper 'Personalization in Goal-oriented Dialog' (NeurIPS 2017 Conversational AI Workshop)
https://chaitjo.github.io/personalization-in-dialog/
MIT License
132 stars 45 forks source link

how to evaluate model predicted sentences in dialogue conversation ? #10

Closed ahtsham58 closed 4 years ago

ahtsham58 commented 4 years ago

Hi @chaitjo ,

I trained the models successfully and I could see model logs for each task with their losses values and other metrics.

I want to analyze the model performance in predicting the next sentence and recommending the item to the user based on user dialogue history as claimed in the paper. You also presented some dialogue examples for each task in the paper (Appendix).

Could you please give me a head start to find dialogue examples between a user and a bot like you presented in the Appendix ?

chaitjo commented 4 years ago

You can run the test scripts. E.g. python single_dialog.py --train False --task_id 1 for the Memory Network.

If you are asking how I created the attention visualizations, it was a lot of manual work. I remember saving the attention weights for each test dialog in a separate .txt file when I ran inference. Next, I manually created the tables shown in the paper and filled in the sentence from the test set as well as the attention values at each hop.

ahtsham58 commented 4 years ago

So, What I understood is that generating dialogue conversation between user and bot is not possible using the model(s).

Experimentation in the paper includes only accuracy scores, so dialogue quality is still unanswered?

Is that correct? please confirm.

chaitjo commented 4 years ago

If you revisit this paper as well as the original Memory Network work by FAIR, you'd find that all these works are for retrieval-based dialog systems. For generative models, follow the line of work from the SEQ2SEQ/Neural Conversational Model papers.

chaitjo commented 4 years ago

Maybe you can find something of interest here: https://github.com/chaitjo/personalized-dialog/issues/7

ahtsham58 commented 4 years ago

ok. thanks.