29ee3e34123191e7b444915b6be56edd8699aa36,deeppavlov/core/commands/infer.py,,interact_model,#Any#,102
Before Change
if context == "exit" or context == "stop" or context == "quit" or context == "q":
return
try:
pred = model([context])
print(">>", pred[0])
except Exception as e:
raise e
After Change
while True:
args = []
for in_x in model.in_x:
args.append(input("{}::".format(in_x) ))
// check for exit command
if args[-1] == "exit" or args[-1] == "stop" or args[-1] == "quit" or args[-1] == "q":
return
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: deepmipt/DeepPavlov
Commit Name: 29ee3e34123191e7b444915b6be56edd8699aa36
Time: 2018-03-22
Author: yurakuratov@gmail.com
File Name: deeppavlov/core/commands/infer.py
Class Name:
Method Name: interact_model
Project Name: tryolabs/luminoth
Commit Name: 5d9571462965fc0ed3fd9e88ce395de5a68e3527
Time: 2017-11-08
Author: javirey@gmail.com
File Name: luminoth/tools/cloud/gcloud.py
Class Name:
Method Name: train
Project Name: GPflow/GPflow
Commit Name: be119b0bb043be437f9619c26cf0f9878a6a9090
Time: 2017-09-14
Author: art.art.v@gmail.com
File Name: GPflow/misc.py
Class Name:
Method Name: get_tensor_by_name