Skip to content

Instantly share code, notes, and snippets.

@moskomule
Created October 10, 2017 15:23
Show Gist options
  • Save moskomule/6f53c41fe66efc83905b69ca79483f4b to your computer and use it in GitHub Desktop.
Save moskomule/6f53c41fe66efc83905b69ca79483f4b to your computer and use it in GitHub Desktop.
easymecab

Dockerを用いた簡単なmecabの利用

ビルド

docker build -t mecab .

インタラクティブな利用

docker run -it --rm mecab mecab

ローカルのファイルを分析

docker run -it --rm -v `pwd`:/tmp  mecab mecab /tmp/input.txt -o /tmp/output.txt
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y mecab libmecab-dev mecab-ipadic-utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment