lasigeBioTM / MER

Minimal Named-Entity Recognizer (MER)
http://labs.fc.ul.pt/mer/
56 stars 8 forks source link

There should be an option to do batch requests to external services #22

Closed LLCampos closed 7 years ago

LLCampos commented 7 years ago

Requests for documents to external services will probably be one of the biggest time bottlenecks that we will have, so we probably should probably do batch requests if that's possible.

LLCampos commented 7 years ago

So that the external services clients support batch requests I was thinking about something along the lines of:

Input:

bash pubmed.sh [id1] [id2] [id3]

Output:

{
  "id1": {
    "title": "título1",
    "abstract": "abstract1"
  },
  "id2": {
    "title": "título2",
    "abstract": "abstract2"
  },
  "id3": {
    "title": "título3",
    "abstract": "abstract3"
  }
}

@AndreLamurias, what do you think?

AndreLamurias commented 7 years ago

agreed

LLCampos commented 7 years ago

Done this for the clients that are already implemented. Probably broke some of your code because the output of the clients changed.