ff1a2e89501cbb903950693d0616bd178ac20a7b,parlai/agents/local_human/local_human.py,LocalHumanAgent,act,#LocalHumanAgent#,48
Before Change
reply["episode_done"] = False
reply["label_candidates"] = self.fixedCands_txt
if "[DONE]" in reply_text:
reply["episode_done"] = True
self.episodeDone = True
reply_text = reply_text.replace("[DONE]", "")
reply["text"] = reply_text
return reply
After Change
)
def act(self):
reply = Message()
reply["id"] = self.getID()
reply_text = input("Enter Your Message: ")
reply_text = reply_text.replace("\\n", "\n")
if self.opt.get("single_turn", False):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: facebookresearch/ParlAI
Commit Name: ff1a2e89501cbb903950693d0616bd178ac20a7b
Time: 2019-08-20
Author: edinan@fb.com
File Name: parlai/agents/local_human/local_human.py
Class Name: LocalHumanAgent
Method Name: act
Project Name: facebookresearch/ParlAI
Commit Name: 23fa52624823d340f23e96f5f838d18eba608d76
Time: 2020-04-28
Author: edinan@fb.com
File Name: parlai/agents/safe_local_human/safe_local_human.py
Class Name: SafeLocalHumanAgent
Method Name: act
Project Name: facebookresearch/ParlAI
Commit Name: 7f2f766be0b1b2d77d02621ec9f64ea9104fade0
Time: 2019-08-06
Author: edinan@fb.com
File Name: parlai/scripts/build_pytorch_data.py
Class Name:
Method Name: build_data