From 37a217af138565323b95815922ef7e714013bba2 Mon Sep 17 00:00:00 2001 From: Stephen Roller Date: Sun, 21 Mar 2021 18:31:44 -0400 Subject: [PATCH 1/3] Faster display_data. --- parlai/scripts/display_data.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parlai/scripts/display_data.py b/parlai/scripts/display_data.py index 0a92fe6e295..9b44799d0bd 100644 --- a/parlai/scripts/display_data.py +++ b/parlai/scripts/display_data.py @@ -18,7 +18,7 @@ """ from parlai.core.params import ParlaiParser -from parlai.agents.repeat_label.repeat_label import RepeatLabelAgent +from parlai.agents.fixed_response.fixed_response import FixedResponseAgent from parlai.core.worlds import create_task from parlai.utils.strings import colorize from parlai.core.script import ParlaiScript, register_script @@ -66,7 +66,9 @@ def display_data(opt): # create repeat label agent and assign it to the specified task opt.log() - agent = RepeatLabelAgent(opt) + fro = opt.copy() + opt['fixed_response'] = None + agent = FixedResponseAgent(opt) world = create_task(opt, agent) # Show some example dialogs. From fa4d4bca39c4ebeeb1a872ab019e94b839ed7fdf Mon Sep 17 00:00:00 2001 From: Stephen Roller Date: Mon, 22 Mar 2021 22:22:43 -0400 Subject: [PATCH 2/3] Update display_data.py --- parlai/scripts/display_data.py | 1 - 1 file changed, 1 deletion(-) diff --git a/parlai/scripts/display_data.py b/parlai/scripts/display_data.py index 9b44799d0bd..92d46d8ccc6 100644 --- a/parlai/scripts/display_data.py +++ b/parlai/scripts/display_data.py @@ -66,7 +66,6 @@ def display_data(opt): # create repeat label agent and assign it to the specified task opt.log() - fro = opt.copy() opt['fixed_response'] = None agent = FixedResponseAgent(opt) world = create_task(opt, agent) From 4493bcc991c56e1da3ad5711fb5f40e0d4a52b6b Mon Sep 17 00:00:00 2001 From: Stephen Roller Date: Wed, 31 Mar 2021 13:52:31 -0400 Subject: [PATCH 3/3] Update display_data.py --- parlai/scripts/display_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parlai/scripts/display_data.py b/parlai/scripts/display_data.py index 92d46d8ccc6..8fd8aa3317b 100644 --- a/parlai/scripts/display_data.py +++ b/parlai/scripts/display_data.py @@ -64,7 +64,7 @@ def display_data(opt): if 'ordered' not in opt['datatype'] and 'train' in opt['datatype']: opt['datatype'] = f"{opt['datatype']}:ordered" - # create repeat label agent and assign it to the specified task + # create dummy agent and assign it to the specified task opt.log() opt['fixed_response'] = None agent = FixedResponseAgent(opt)