Created
August 23, 2016 06:41
-
-
Save xeb/be15f9099f7f3f3eeda53a926f649b96 to your computer and use it in GitHub Desktop.
fastText with Python 3.5 Example
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
# Modified from: https://github.com/xeb/fastText-docker/blob/master/Dockerfile | |
# To build & run, do: | |
# docker build -t fasttext-py3.5 -f Dockerfile.py35 . | |
# docker run --rm -it fasttext-py3.5 ./eval.py | |
# | |
FROM python:3.5 | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
wget \ | |
git \ | |
python-dev \ | |
&& pip install numpy scipy \ | |
&& rm -rf /var/cache/apk/* | |
RUN git clone https://github.com/facebookresearch/fastText.git /tmp/fastText && \ | |
rm -rf /tmp/fastText/.git* && \ | |
mv /tmp/fastText/* / && \ | |
cd / && \ | |
make | |
WORKDIR / | |
CMD ["./fasttext"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment