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

Exceptions raised in bidaf/squad/utils.py get_2d_spans #3

Open
alphamupsiomega opened this issue Jan 14, 2018 · 2 comments
Open

Exceptions raised in bidaf/squad/utils.py get_2d_spans #3

alphamupsiomega opened this issue Jan 14, 2018 · 2 comments

Comments

@alphamupsiomega
Copy link

alphamupsiomega commented Jan 14, 2018

python3 -m newsqa.prepro

  File "/Users/MY/anaconda/envs/py3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/MY/anaconda/envs/py3/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/MY/Downloads/QuestionGeneration/bidaf/newsqa/prepro.py", line 300, in <module>
    main()
  File "/Users/MY/Downloads/QuestionGeneration/bidaf/newsqa/prepro.py", line 18, in main
    prepro(args)
  File "/Users/MY/Downloads/QuestionGeneration/bidaf/newsqa/prepro.py", line 62, in prepro
    prepro_each(args, 'dev', out_name='dev')
  File "/Users/MY/Downloads/QuestionGeneration/bidaf/newsqa/prepro.py", line 239, in prepro_each
    yi0, yi1 = get_word_span(context, xi, answer_start, answer_stop)
  File "/Users/MY/Downloads/QuestionGeneration/bidaf/squad/utils.py", line 22, in get_word_span
    spanss = get_2d_spans(context, wordss)
  File "/Users/MY/Downloads/QuestionGeneration/bidaf/squad/utils.py", line 13, in get_2d_spans
    raise Exception()
Exception```
@paniabhisek
Copy link

Any explanation as why you are raising an Exception would be great..

@mikalyoung Did you resolve this exception. can you tell how ?

@385628424
Copy link

解决了吗?

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

2 participants