From e03da45bfd9653057b5d07d6265bd2a92739bdee Mon Sep 17 00:00:00 2001 From: Arpit Goyal Date: Thu, 11 Jan 2018 21:25:08 +0530 Subject: [PATCH 1/2] Dockerfile incorporated for exposing the API --- Dockerfile | 21 +++++++++++++++++++++ README.md | 17 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3d70462 --- /dev/null +++ b/Dockerfile @@ -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/arpitgoyalhtmedia/1ebda74744bf0076c872b7d92b723bd6/raw/406b82dd0400f1769fe970b11b7cd218e77dd19a/parser_api.py' + +RUN mkdir service_resumes + +CMD python parser_api.py diff --git a/README.md b/README.md index b5bb545..4065103 100644 --- a/README.md +++ b/README.md @@ -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 From 8719dc07920e9e1722c37986bc5071ce8ea68da4 Mon Sep 17 00:00:00 2001 From: Arpit Goyal <10412881+argoyal@users.noreply.github.com> Date: Sun, 20 Jan 2019 21:39:29 +0530 Subject: [PATCH 2/2] Update Dockerfile changed the url for gist --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3d70462..c03b5ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ WORKDIR ResumeParser/ResumeTransducer ENV GATE_HOME=/ResumeParser/GATEFiles -RUN wget -O 'parser_api.py' 'https://gist.githubusercontent.com/arpitgoyalhtmedia/1ebda74744bf0076c872b7d92b723bd6/raw/406b82dd0400f1769fe970b11b7cd218e77dd19a/parser_api.py' +RUN wget -O 'parser_api.py' 'https://gist.githubusercontent.com/argoyal/1ebda74744bf0076c872b7d92b723bd6/raw/effd76f84328355d953a4b900c3ec10be9ed87ae/parser_api.py' RUN mkdir service_resumes