-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (36 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
47 lines (36 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#FROM python:2.7.8
FROM java:7
MAINTAINER Eugene Tulika "vranen@gmail.com"
# Install Python.
RUN \
apt-get update && \
apt-get install -y python python-dev python-pip python-virtualenv && \
rm -rf /var/lib/apt/lists/*
RUN wget http://pyyaml.org/download/pyyaml/PyYAML-3.09.tar.gz \
&& tar -zxf PyYAML-3.09.tar.gz \
&& cd PyYAML-3.09 \
&& python setup.py install
RUN wget https://pypi.python.org/packages/source/n/nltk/nltk-2.0b9.tar.gz \
&& tar -zxf nltk-2.0b9.tar.gz \
&& cd nltk-2.0b9 \
&& python setup.py install
RUN wget http://www.cs.toronto.edu/~weifeng/software/discourse_parse-2.01.tar.gz \
&& tar -zxf discourse_parse-2.01.tar.gz \
&& cd gCRF_dist/tools/crfsuite
RUN wget https://github.com/downloads/chokkan/liblbfgs/liblbfgs-1.10.tar.gz \
&& tar -zxf liblbfgs-1.10.tar.gz \
&& cd liblbfgs-1.10 \
&& ./configure --prefix=$HOME/local \
&& make \
&& make install
RUN cd gCRF_dist/tools/crfsuite/crfsuite-0.12 \
&& chmod +x configure \
&& ./configure --prefix=$HOME/local --with-liblbfgs=$HOME/local \
&& make \
&& make install
RUN cd gCRF_dist/tools/crfsuite && \
cp $HOME/local/bin/crfsuite crfsuite-stdin \
&& chmod +x crfsuite-stdin
RUN cd gCRF_dist/tools/crfsuite \
&& ./crfsuite-stdin tag -pi -m ../../model/tree_build_set_CRF/label/intra.crfsuite test.txt
CMD ["/bin/sh"]