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

updated TreeTagger #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
22 changes: 8 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM openjdk:8-jre
LABEL maintainer="Damien Cram <damien.cram@univ-nantes.fr>"

ENV \
TT_VERSION=3.2.1 \
TT_VERSION=3.2.2 \
TERMSUITE_VERSION=3.0.10 \
TT_URL=http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/data

Expand All @@ -21,26 +21,20 @@ RUN mkdir -p /opt/treetagger/
WORKDIR /opt/treetagger/
RUN wget ${TT_URL}/tree-tagger-linux-${TT_VERSION}.tar.gz \
&& wget ${TT_URL}/tagger-scripts.tar.gz \
&& wget ${TT_URL}/english-par-linux-3.2-utf8.bin.gz \
&& wget ${TT_URL}/french-par-linux-3.2-utf8.bin.gz \
&& wget ${TT_URL}/german-par-linux-3.2-utf8.bin.gz \
&& wget ${TT_URL}/russian-par-linux-3.2-utf8.bin.gz \
&& wget ${TT_URL}/italian-par-linux-3.2-utf8.bin.gz \
&& wget ${TT_URL}/spanish-par-linux-3.2-utf8.bin.gz \
&& wget ${TT_URL}/english.par.gz \
&& wget ${TT_URL}/french.par.gz \
&& wget ${TT_URL}/german.par.gz \
&& wget ${TT_URL}/russian.par.gz \
&& wget ${TT_URL}/italian.par.gz \
&& wget ${TT_URL}/spanish.par.gz \
# && wget http://corpus.leeds.ac.uk/tools/zh/tt-lcmc.tgz \
&& wget ${TT_URL}/install-tagger.sh \
&& sh /opt/treetagger/install-tagger.sh \
&& mv lib models \
&& rm -rf *.gz *.tgz cmd/ doc/

WORKDIR /opt/treetagger/models/
RUN mv french-utf8.par french.par \
&& mv english-utf8.par english.par \
&& mv spanish-utf8.par spanish.par \
&& mv italian-utf8.par italian.par \
&& mv russian-utf8.par russian.par \
&& mv german-utf8.par german.par \
&& rm *-utf8 *-abbreviations *-mwls *-tokens *.txt \
RUN rm *-abbreviations *-mwls *-tokens *.txt \
&& chmod a+x /opt/treetagger/models/

WORKDIR /opt/
Expand Down