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

ranker.score(idx, query) runs indefinitely #206

Open
srvchetry opened this issue Nov 18, 2018 · 4 comments
Open

ranker.score(idx, query) runs indefinitely #206

srvchetry opened this issue Nov 18, 2018 · 4 comments

Comments

@srvchetry
Copy link

srvchetry commented Nov 18, 2018

I am running the search function from my Flask app. The step ranker.score(idx, query) runs indefinitely. Could you please check and help me with any pointers? Thank you.

Dataset used: data.dat attached.
image

Code:
image

Issue: The application returns results for a single search currently.
During the second search, the below steps are completed:

  1. Index creation
  2. Ranker selection
  3. User input parsing
    The step ranker.score() runs indefinitely during the second search.
    Workaround: The Flask application requires a restart for checking different queries.
@smeng9
Copy link

smeng9 commented Oct 20, 2019

same here, please fix this

@mikepigott
Copy link

I am seeing this on Python 3.7 as well. According to other students in my class, this functionality works correctly on Python 3.5 (which I will try soon). (Unfortunately, since this is a homework assignment, I cannot provide any more details.)

@ErvinCSE
Copy link

ErvinCSE commented Nov 5, 2020

@mikepigott Did you end up finding a solution? Downgrading to Python 3.5 didn't work for me, unfortunately.

@ErvinCSE
Copy link

ErvinCSE commented Nov 5, 2020

As an update: running my Flask app with the "threaded" flag set to False solved the issue.

I.e., changing: app.run() into app.run(threaded=False) solved my issues.

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

4 participants