Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OrnellaIrrera authored Sep 29, 2021
1 parent c3cae63 commit 4e7b91b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,17 @@ Instructions on how to build and run sket images are reported below, if you alre

8) The annotation of medical reports can be performed with two types of <b>POST request</b>:<br />
8a) If you want to store the annotations in ```outputs``` directory the URL to make the request to is: ```http://0.0.0.0:8000/annotate/<use_case>/<language>``` where ```use_case``` and ```language``` are the use case and the language of your reports respectively.<br />
<br /> Request example: <br />
```curl -H "Content-Type: multipart/form-data" -F "data=@path/to/examples/test.xlsx" http://0.0.0.0:8000/annotate/colon/en```<br />
<br /> Request example:
```bash
curl -H "Content-Type: multipart/form-data" -F "data=@path/to/examples/test.xlsx" http://0.0.0.0:8000/annotate/colon/en
```

where ```path/to/examples``` is the path to examples folder.<br /><br />
8b) If you want to use the labels, the concepts or the graphs returned by sket without saving them the URL to make the request to is: ```http://0.0.0.0:8000/annotate/<use_case>/<language>/<output>``` where ```use_case``` and ```language``` are the use case and the language of your reports respectively and ```output``` is ```labels``` or ```concepts``` or ```graphs```.<br />
<br />Request example: <br />
```curl -H "Content-Type: multipart/form-data" -F "data=@path/to/examples/test.xlsx" http://0.0.0.0:8000/annotate/colon/en/labels```<br />
<br />Request example:
```bash
curl -H "Content-Type: multipart/form-data" -F "data=@path/to/examples/test.xlsx" http://0.0.0.0:8000/annotate/colon/en/labels
```
where ```path/to/examples``` is the path to examples folder. <br />

9) If you want to build the entire image again, from the project folder type: ```docker-compose down --rmi local```
Expand Down

0 comments on commit 4e7b91b

Please sign in to comment.