-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from chilland/update
Update corenlp and add shift reduce parser
- Loading branch information
Showing
3 changed files
with
52 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Publish Docker image | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
- name: Push to Docker Hub | ||
uses: docker/build-push-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
repository: chilland/corenlp | ||
tag_with_ref: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
FROM java:8 | ||
FROM maven:alpine | ||
|
||
MAINTAINER Casey Hilland <casey dot hilland at gmail dot com> | ||
RUN apk add --update --no-cache \ | ||
unzip wget | ||
|
||
RUN wget http://nlp.stanford.edu/software/stanford-corenlp-full-2015-12-09.zip | ||
RUN unzip stanford-corenlp-full-2015-12-09.zip && rm stanford-corenlp-full-2015-12-09.zip | ||
ARG CORENLP_VERSION="4.2.0" | ||
|
||
WORKDIR stanford-corenlp-full-2015-12-09 | ||
RUN wget http://nlp.stanford.edu/software/stanford-corenlp-${CORENLP_VERSION}.zip | ||
RUN unzip stanford-corenlp-${CORENLP_VERSION}.zip && \ | ||
rm stanford-corenlp-${CORENLP_VERSION}.zip | ||
|
||
WORKDIR stanford-corenlp-${CORENLP_VERSION} | ||
|
||
RUN wget https://nlp.stanford.edu/software/stanford-srparser-2014-10-23-models.jar | ||
RUN mvn install:install-file -Dfile=stanford-srparser-2014-10-23-models.jar \ | ||
-DgroupId=edu.stanford.nlp -DartifactId=stanford-srparser \ | ||
-Dversion=3.5.2 -Dpackaging=jar | ||
|
||
RUN export CLASSPATH="`find . -name '*.jar'`" | ||
|
||
EXPOSE 9000 | ||
|
||
CMD java -cp "*" -mx4g edu.stanford.nlp.pipeline.StanfordCoreNLPServer | ||
CMD java -cp "*" -mx4g edu.stanford.nlp.pipeline.StanfordCoreNLPServer -parse.model edu/stanford/nlp/models/srparser/englishSR.ser.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters