Skip to content

Instantly share code, notes, and snippets.

@nazoking
Last active August 26, 2016 06:00
Show Gist options
  • Save nazoking/c54d6ec7a384369cabafe9b599a11200 to your computer and use it in GitHub Desktop.
Save nazoking/c54d6ec7a384369cabafe9b599a11200 to your computer and use it in GitHub Desktop.
tensorflow + gensim + mecab + neolgd
# よさげなタグを選ぶ https://hub.docker.com/r/tensorflow/tensorflow/tags/
FROM tensorflow/tensorflow:0.10.0rc0-gpu
# mecab + neologd
RUN apt-get update && apt-get install -y \
mecab \
python-mecab \
mecab-ipadic-utf8 \
libmecab-dev \
&& \
apt-get purge -y mecab-jumandic && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
curl -L https://github.com/neologd/mecab-ipadic-neologd/archive/master.tar.gz |tar zxf - && \
mecab-ipadic-neologd-master/bin/install-mecab-ipadic-neologd -n -y -p /usr/share/mecab/dic/mecab-ipadic-neologd && \
update-alternatives --install /var/lib/mecab/dic/debian mecab-dictionary /usr/share/mecab/dic/mecab-ipadic-neologd 90 && \
rm -rf mecab-ipadic-neologd-master
# gensim
RUN pip --no-cache-dir install gensim
# コンソールで日本語が通るように
ENV LANG en_US.UTF-8
RUN /usr/sbin/locale-gen ${LANG}
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment