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

list index out of range #39

Open
Sparsh-Bansal opened this issue Jul 27, 2019 · 0 comments
Open

list index out of range #39

Sparsh-Bansal opened this issue Jul 27, 2019 · 0 comments

Comments

@Sparsh-Bansal
Copy link

While testing on giga word dataset ... i faced with this error

Traceback (most recent call last):
File "src/summarization.py", line 241, in
tf.app.run()
File "C:\Users\spars\Anaconda3\envs\tensor_model\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "C:\Users\spars\Anaconda3\envs\tensor_model\lib\site-packages\absl\app.py", line 300, in run
_run_main(main, args)
File "C:\Users\spars\Anaconda3\envs\tensor_model\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "src/summarization.py", line 229, in main
decode()
File "src/summarization.py", line 186, in decode
doc_dict = data_util.load_dict(FLAGS.data_dir + "/doc_dict.txt")
File "D:\ML\Summary_maker\src\data_util.py", line 30, in load_dict
tok2id = dict(map(lambda x: (x[1], int(x[0])), dict_data))
File "D:\ML\Summary_maker\src\data_util.py", line 30, in
tok2id = dict(map(lambda x: (x[1], int(x[0])), dict_data))
IndexError: list index out of range

Please Help

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