Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error in the part of make train #35

Open
NingYueran opened this issue Jun 28, 2022 · 0 comments
Open

An error in the part of make train #35

NingYueran opened this issue Jun 28, 2022 · 0 comments

Comments

@NingYueran
Copy link

NingYueran commented Jun 28, 2022

Dear professor:
I'm sorry to disturb you, I met a problem in make train, the problem is as follows:
Traceback (most recent call last):
File "/home/admin318/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/admin318/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/admin318/nl2bash-master/encoder_decoder/translate.py", line 378, in
tf.compat.v1.app.run()
File "/home/admin318/anaconda3/lib/python3.8/site-packages/tensorflow/python/platform/app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "/home/admin318/anaconda3/lib/python3.8/site-packages/absl/app.py", line 312, in run
_run_main(main, args)
File "/home/admin318/anaconda3/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main
sys.exit(main(argv))
File "/home/admin318/nl2bash-master/encoder_decoder/translate.py", line 320, in main
train_set, dev_set, test_set = data_utils.load_data(FLAGS, use_buckets=True)
File "/home/admin318/nl2bash-master/encoder_decoder/data_utils.py", line 136, in load_data
train_set = read_data(FLAGS, 'train', source, target, load_features=load_features,
File "/home/admin318/nl2bash-master/encoder_decoder/data_utils.py", line 250, in read_data
compute_copy_indices(sc_tokens, tg_tokens,
File "/home/admin318/nl2bash-master/encoder_decoder/data_utils.py", line 738, in compute_copy_indices
assert(len(sc_tokens) == len(sc_copy_tokens))
AssertionError
Makefile:42: recipe for target 'train' failed
I'm looking forward to your reply

@NingYueran NingYueran changed the title An error An error in the part of make train Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant