forked from commonsense/conceptnet5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 706 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 706 Bytes
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
FROM rspeer/conceptnet-base:5.3
MAINTAINER Rob Speer <rob@luminoso.com>
# Configure the environment where ConceptNet will be built
ENV PYTHON python3
ADD conceptnet5 /src/conceptnet/conceptnet5
ADD tests /src/conceptnet/tests
ADD setup.py /src/conceptnet/setup.py
ADD partial-build.Makefile /src/conceptnet/Makefile
# Set up ConceptNet
WORKDIR /src/conceptnet
RUN python3 setup.py develop
RUN pip3 install assoc_space==1.0b
# Download 5 GB of ConceptNet data
RUN make -e download_assertions
# Build the database (this takes about 8 hours)
RUN make -e build_db
# Get the association vectors
RUN make -e download_vectors
# Keep track of where the data ended up
ENV CONCEPTNET_DATA /src/conceptnet/data