-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Hello,
I'm trying to reproduce the paper results, but I get an assertion error after few epochs while running "make train".
Do you have any suggestion?
Thanks!
Example 700
Original Source: b'Write unbuffered output of "python -u client.py" to standard output and to "logfile"'
Source: [b'w', b'r', b'i', b't', b'e', b' ', b'_', b'_', b'S', b'P', b'_', b'_', b'U', b'N', b'K', b' ', b'o', b'u', b't', b'p', b'u', b't', b' ', b'o', b'f', b' ', b'_', b'_', b'S', b'P', b'_', b'_', b'U', b'N', b'K', b' ', b'
t', b'o', b' ', b's', b't', b'a', b'n', b'd', b'a', b'r', b'd', b' ', b'o', b'u', b't', b'p', b'u', b't', b' ', b'a', b'n', b'd', b' ', b't', b'o', b' ', b'_', b'_', b'S', b'P', b'_', b'_', b'U', b'N', b'K']
GT Target 1: b'python -u client.py | tee logfile'
Prediction 1: b'' (0.0, 0)
Prediction 2: b'echo __SP__UNK | tee __SP__UNK' (0.36514837167011077, 0.2033717397090786)
Prediction 3: b'ls -l -R __SP__UNK | tee __SP__UNK' (0.3086066999241838, 0.18043239916836057)
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/workspace/nl2bash/encoder_decoder/translate.py", line 378, in <module>
tf.compat.v1.app.run()
File "/usr/local/lib/python3.7/dist-packages/tensorflow_core/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/usr/local/lib/python3.7/dist-packages/absl/app.py", line 299, in run
_run_main(main, args)
File "/usr/local/lib/python3.7/dist-packages/absl/app.py", line 250, in _run_main
sys.exit(main(argv))
File "/root/workspace/nl2bash/encoder_decoder/translate.py", line 374, in main
eval(dataset, verbose=True)
File "/root/workspace/nl2bash/encoder_decoder/translate.py", line 176, in eval
return eval_tools.automatic_eval(prediction_path, dataset, top_k=3, FLAGS=FLAGS, verbose=verbose)
File "/root/workspace/nl2bash/eval/eval_tools.py", line 249, in automatic_eval
top_k, num_samples, verbose)
File "/root/workspace/nl2bash/eval/eval_tools.py", line 361, in get_automatic_evaluation_metrics
bleu = token_based.corpus_bleu_score(command_gt_asts_list, pred_ast_list)
File "/root/workspace/nl2bash/eval/token_based.py", line 70, in corpus_bleu_score
gt_tokens_list = [[data_tools.bash_tokenizer(ast, ignore_flag_order=True) for ast in gt_asts] for gt_asts in gt_asts_list] File "/root/workspace/nl2bash/eval/token_based.py", line 70, in <listcomp>
gt_tokens_list = [[data_tools.bash_tokenizer(ast, ignore_flag_order=True) for ast in gt_asts] for gt_asts in gt_asts_list]
File "/root/workspace/nl2bash/eval/token_based.py", line 70, in <listcomp>
gt_tokens_list = [[data_tools.bash_tokenizer(ast, ignore_flag_order=True) for ast in gt_asts] for gt_asts in gt_asts_list] File "/root/workspace/nl2bash/bashlint/data_tools.py", line 58, in bash_tokenizer
with_prefix=with_prefix, with_flag_argtype=with_flag_argtype)
File "/root/workspace/nl2bash/bashlint/data_tools.py", line 250, in ast2tokens
return to_tokens_fun(node) File "/root/workspace/nl2bash/bashlint/data_tools.py", line 102, in to_tokens_fun
assert(loose_constraints or node.get_num_of_children() == 1)
AssertionError
Makefile:41: recipe for target 'train' failed make: *** [train] Error 1
Metadata
Metadata
Assignees
Labels
No labels