You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IEPY is good for bulk operations, but my requirement is to get the answer as soon as possible on per request basis which can be simultaneous as well. One approach is:
Get the document id and text from the HTTP request.
Create a temporary csv file with a unique name.
Import that file into iepy using csv_to_iepy.py.
Run preprocess.py.
Predict the output using an already trained pickle model file.
Get the candidate_relation_id from the output csv.
Get further details, such as alias from the db.
Clear the temporary files and db tables.
Now the clearing part is not allowing it to be a concurrent system. If I don't clear the db, it checks if all the steps have been done for previous documents as well.
The text was updated successfully, but these errors were encountered:
I think that what you are wanting to do is very related with this other ticket: #62
So, the short answer is "no, cannot be done out of the box", but if you follow a bit the discussion on that thread, should be possible to do the needed changes.
Want to make a try?
IEPY is good for bulk operations, but my requirement is to get the answer as soon as possible on per request basis which can be simultaneous as well. One approach is:
Now the clearing part is not allowing it to be a concurrent system. If I don't clear the db, it checks if all the steps have been done for previous documents as well.
The text was updated successfully, but these errors were encountered: