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

Wizard of Wikipedia, knowledge source page title. #3845

Merged
merged 6 commits into from
Jul 23, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
teacher test
  • Loading branch information
mojtaba-komeili committed Jul 22, 2021
commit ea4d32e55be673c519f90505967fe5844d24a61b
2 changes: 1 addition & 1 deletion parlai/tasks/wizard_of_wikipedia/agents.py
Original file line number Diff line number Diff line change
@@ -758,7 +758,7 @@ def get(self, episode_idx, entry_idx=0):
return a


class WikiTitlePageTeacher(WizardDialogKnowledgeTeacher):
class WikiPageTitleTeacher(WizardDialogKnowledgeTeacher):
def __init__(self, opt, shared=None):
self.opt = copy.deepcopy(opt)
self.opt['label_type'] = 'response'
4 changes: 4 additions & 0 deletions parlai/tasks/wizard_of_wikipedia/test.py
Original file line number Diff line number Diff line change
@@ -39,5 +39,9 @@ class TestGeneratorTeacher(AutoTeacherTest):
task = "wizard_of_wikipedia:generator"


class TestWikiPageTitleTeacher(AutoTeacherTest):
task = "wizard_of_wikipedia:wiki_page_title"


class TestDocreaderTeacher(AutoTeacherTest):
task = "wizard_of_wikipedia:docreader"