allenai / science-parse

Science Parse parses scientific papers (in PDF form) and returns them in structured form.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access Docker

amandalmia14 opened this issue · comments

Can anyone provide a documentation on API calling via Docker.
My docker.bintray.io/s2/scienceparse:1.3.2 is running, but the readme doesn't have enough documentation.

Thanks

The docker container runs a server on a port. It just runs the server. So you can use the same command, except point it at the docker container:

curl -v -H "Content-type: application/pdf" --data-binary @paper.pdf "http://localhost:8080/v1"

Ahh..is works perfectly.

While running the docker in interactive mode, there is no logs when I run the command "curl -v -H "Content-type: application/pdf" --data-binary @paper.pdf "http://localhost:8080/v1"", although it gives the result.

Thanks a lot.