11693-2 / project-team02

Software Method Team Project
4 stars 1 forks source link

CAS IO #9

Closed xiliuhk closed 10 years ago

xiliuhk commented 10 years ago

Collection Reader

Process the questions and parse into sentences and then tokens.

CAS Consumer

A collection consumer should be developed to parse CAS to JSON, then submit it through the web interface, or the POST request.

JSON file

The format of JSON should be as below.
{"documents": [{"labels":["label1","label2",...,"labelN"], "pmid": 22511223}, {"labels":["label1", "label2",...,"labelM"],"pmid":22511224}, ... {"labels":["label1", "label2",...,"labelK"], "pmid":22511225}]} where "label1",.."labelN" are the MeSH indicators e.g. "D005260" and not the human annotation i.e. "Female".

Validation Before Submission

We need to validate the following aspects before submission.

http://bioasq.lip6.fr/Tasks/2a/

API

By using an API, we could make a POST requests in the URI http://bioasq.lip6.fr/tests/uploadResults/test_number/ along with the JSON string.
For example, for uploading results for the Week 2 test set of the first test batch, you should POST your results inhttp://bioasq.lip6.fr/tests/uploadResults/2/. To submit results for the dry-run test set you should POST inhttp://bioasq.lip6.fr/tests/uploadResults/0/.