6726e87d0be42635408e5c7594cbb5d5c0d7a36a,parlai/tasks/convai2/worlds.py,InteractiveWorld,get_new_personas,#InteractiveWorld#,29
Before Change
if msg.get("episode_done", False):
self.convai2_world.parley()
msg = self.convai2_world.get_acts()[0]
break
txt = msg.get("text", "").split("\n")
a1_persona = ""
a2_persona = ""
for t in txt:
After Change
def get_new_personas(self):
random.seed()
personas_1 = random.choice(self.personas_list)
personas_2 = random.choice(self.personas_list)
return personas_1, personas_2
def parley(self):
Agent 0 goes first. Alternate between the two agents.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: facebookresearch/ParlAI
Commit Name: 6726e87d0be42635408e5c7594cbb5d5c0d7a36a
Time: 2019-11-25
Author: jase@fb.com
File Name: parlai/tasks/convai2/worlds.py
Class Name: InteractiveWorld
Method Name: get_new_personas
Project Name: joeddav/devol
Commit Name: 50a48e6cdd5f2240d2f0c793b3b3991d09c28d03
Time: 2017-03-25
Author: easton.huch@gmail.com
File Name: genome_handler.py
Class Name: GenomeHandler
Method Name: mutate
Project Name: mozilla/bugbug
Commit Name: 3f2b1d4efa10398263b1002e0bd4a13ecb83ead1
Time: 2019-06-04
Author: ayush.shridhar1506@gmail.com
File Name: bugbug/models/duplicate.py
Class Name: DuplicateModel
Method Name: get_labels