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

Dockerfile incorporated for exposing the API #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM java:8

RUN wget -O get_pip.py "https://bootstrap.pypa.io/get-pip.py"

RUN python get_pip.py

RUN rm get_pip.py

RUN pip install flask

RUN git clone "https://github.com/antonydeepak/ResumeParser"

WORKDIR ResumeParser/ResumeTransducer

ENV GATE_HOME=/ResumeParser/GATEFiles

RUN wget -O 'parser_api.py' 'https://gist.githubusercontent.com/argoyal/1ebda74744bf0076c872b7d92b723bd6/raw/effd76f84328355d953a4b900c3ec10be9ed87ae/parser_api.py'

RUN mkdir service_resumes

CMD python parser_api.py
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,20 @@ I tried my best to not blow in the face of user, but these are some gotchas:
```
## How does the parse work?
Parse uses the Engligh grammar engine provided by GATE through its ANNIE framework. The output is then transduced using the grammar rules and lists specifically written for resume parsing. The JAPE grammar defines a generic set of rules that complies with popular ways of resume writing. It takes Proper nouns from lists and applies them to rules to identify entities. Explore the source code and read about GATE for more details. Also, feel free to pose questions.

## Docker Support and API endpoints
Docker supported has been implemented which exposes an endpoint written in Flask (python).

To expose the API endpoint use:

```bash
docker pull spotmentor/parser-api:latest
```
```bash
docker run -p 9100:9100 spotmentor/parser-api:latest
```

This exposes the URL at http://localhost:9100/

For details visit: https://hub.docker.com/r/spotmentor/parser-api/
For any queries regarding docker contact: arpitgoyal[dot]thunderbird[at]gmail[dot]com