Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Messages instead of dicts for get() in ED, DNLI #3496

Merged

Conversation

skywalker023
Copy link
Contributor

Patch description
When running EmpatheticDialogues and Dialogue NLI, I get the following warning messages:
parlai.tasks.empathetic_dialogues.agents.DefaultTeacher' is outputting dicts instead of messages. If this is a teacher that is part of ParlAI, please file an issue on GitHub. If it is your own teacher, please return a Message object instead.
parlai.tasks.dialogue_nli.agents.DefaultTeacher' is outputting dicts instead of messages. If this is a teacher that is part of ParlAI, please file an issue on GitHub. If it is your own teacher, please return a Message object instead.

So, I wrapped the dicts with the Message object.

Testing steps
Ran
pytest parlai/tasks/empathetic_dialogues/test.py
pytest parlai/tasks/dialogue_nli/test.py
for the test.

Copy link
Contributor

@stephenroller stephenroller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much!

@stephenroller stephenroller merged commit c110f73 into facebookresearch:master Mar 8, 2021
@skywalker023 skywalker023 deleted the messages_not_dicts branch August 10, 2021 03:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants