meta icon indicating copy to clipboard operation
meta copied to clipboard

ranker.score(idx, query) runs indefinitely

Open srvchetry opened this issue 5 years ago • 4 comments

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.

srvchetry avatar Nov 18 '18 13:11 srvchetry

same here, please fix this

smeng9 avatar Oct 20 '19 21:10 smeng9

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.)

mikepigott avatar Sep 20 '20 03:09 mikepigott

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

ErvinCSE avatar Nov 05 '20 15:11 ErvinCSE

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.

ErvinCSE avatar Nov 05 '20 17:11 ErvinCSE