9e563bfcdce1a8ca490667dd3f5ebcfa58269508,examples/memn2n_dialogue/interactive_utils.py,,interactive_loop,#Any#Any#,30
Before Change
if line_in == "show_memory":
print_memory(context)
continue
if line_in == "show_attention":
print_attention(context, interactive_output)
continue
if line_in == "allow_oov":
allow_oov = not allow_oov
print("Allow OOV = {}".format(allow_oov))
continue
After Change
context = old_context
continue
interactive_output = model.predict(np.expand_dims(memory, 0),
np.expand_dims(user_utt, 0),
np.expand_dims(cands_mat, 0))
pred_cand_idx = interactive_output[0]
response = babi.candidate_answers[pred_cand_idx]
print(response)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: NervanaSystems/nlp-architect
Commit Name: 9e563bfcdce1a8ca490667dd3f5ebcfa58269508
Time: 2018-07-24
Author: andy@nervanasys.com
File Name: examples/memn2n_dialogue/interactive_utils.py
Class Name:
Method Name: interactive_loop
Project Name: NervanaSystems/nlp-architect
Commit Name: 794bd558da80b65713b51a964ec61e7ef36d4bf2
Time: 2018-05-14
Author: peteriz@users.noreply.github.com
File Name: examples/intent_extraction/interactive.py
Class Name:
Method Name:
Project Name: ClimbsRocks/auto_ml
Commit Name: 3f74cd386abdc18a4b0b48160686f9654fb22bc1
Time: 2016-12-01
Author: ClimbsBytes@gmail.com
File Name: auto_ml/utils_model_training.py
Class Name: FinalModelATC
Method Name: predict_proba