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

Fix convai2:normalized task's candidate list #3168

Merged
merged 1 commit into from
Oct 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion parlai/tasks/convai2/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def setup_data(self, path):
for (text, labels, reward, candidates), new_episode in super().setup_data(path):
text = self.normalize_replies(text)
labels = [self.normalize_replies(l) for l in labels]
candidates = [self.normalize_replies(l) for l in labels]
candidates = [self.normalize_replies(c) for c in candidates]
yield (text, labels, reward, candidates), new_episode


Expand Down