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

Is it possible use IEPY as a service? #124

Open
himarora opened this issue Feb 7, 2017 · 1 comment
Open

Is it possible use IEPY as a service? #124

himarora opened this issue Feb 7, 2017 · 1 comment

Comments

@himarora
Copy link

himarora commented Feb 7, 2017

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:

  1. Get the document id and text from the HTTP request.
  2. Create a temporary csv file with a unique name.
  3. Import that file into iepy using csv_to_iepy.py.
  4. Run preprocess.py.
  5. Predict the output using an already trained pickle model file.
  6. Get the candidate_relation_id from the output csv.
  7. Get further details, such as alias from the db.
  8. 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.

@jmansilla
Copy link
Contributor

Hi!

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?

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