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

Demo breaks when I use custom test data #11

Open
maoredman opened this issue Nov 19, 2017 · 0 comments
Open

Demo breaks when I use custom test data #11

maoredman opened this issue Nov 19, 2017 · 0 comments

Comments

@maoredman
Copy link

Hi, first of all, thanks for sharing your great work! I really love the web demo.

When I try and use my own .txt files for the web demo though, it doesn't seem to work, even if I abide by babI's formatting rules.

Below is my error stack:

[2017-11-19 17:50:59,797] ERROR in app: Exception on /get/story [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "demo/web/webapp.py", line 47, in get_story
question_idx, story_idx, last_sentence_idx)
File "demo/qa.py", line 91, in get_story_texts
for sent_idx in range(last_sentence_idx + 1)]
KeyError: 175

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