b9a661d7335a7a1c098a98c5085e7252b3c45940,parlai/tasks/convai2/worlds.py,InteractiveWorld,parley,#InteractiveWorld#,76

Before Change


        if self.cnt == 0:
            // add the persona on to the first message to model agent
            act.force_set("text", self.p2 + act.get("text", "hi"))
            model_agent.observe(validate(act))
        else:
            model_agent.observe(validate(act))
        acts[1] = model_agent.act()
        human_agent.observe(validate(acts[1]))

After Change


                    a2_persona.append(t)
            personas.add("\n".join(a1_persona))
            personas.add("\n".join(a2_persona))
    print("[ loaded " + str(len(personas)) + " personas ]")
    return list(personas)


class InteractiveWorld(InteractiveBaseWorld):
    @staticmethod
    def add_cmdline_args(argparser):
        parser = argparser.add_argument_group("ConvAI2 Interactive World")
        parser.add_argument(
            "--display-partner-persona",
            type="bool",
            default=True,
            help="Display your partner persona at the end of the chat",
        )

    def __init__(self, opt, agents, shared=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: facebookresearch/ParlAI
Commit Name: b9a661d7335a7a1c098a98c5085e7252b3c45940
Time: 2020-03-25
Author: jase@fb.com
File Name: parlai/tasks/convai2/worlds.py
Class Name: InteractiveWorld
Method Name: parley


Project Name: facebookresearch/ParlAI
Commit Name: b9a661d7335a7a1c098a98c5085e7252b3c45940
Time: 2020-03-25
Author: jase@fb.com
File Name: parlai/tasks/convai2/worlds.py
Class Name: InteractiveWorld
Method Name: parley


Project Name: facebookresearch/ParlAI
Commit Name: a4ef6d22e3828067a3d4008a73d3b8188a352451
Time: 2018-08-10
Author: kulikov@fb.com
File Name: parlai/mturk/tasks/convai2_model_eval/worlds.py
Class Name: Convai2EvalWorld
Method Name: parley


Project Name: hyperspy/hyperspy
Commit Name: a01ea76e11eb15ff85f570623b362b205c2b67f9
Time: 2017-04-09
Author: frandelapena@gmail.com
File Name: hyperspy/gui_ipywidgets/model.py
Class Name:
Method Name: get_scalable_fixed_patter_widget