Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ramenjuniti/julia-pycall-mecab-cabocha
JuliaでPyCallを使ってMecabやCaboCha動かすDockerイメージ
https://github.com/ramenjuniti/julia-pycall-mecab-cabocha
cabocha docker dockerfile julia mecab mecab-ipadic-neologd python
Last synced: about 1 month ago
JSON representation
JuliaでPyCallを使ってMecabやCaboCha動かすDockerイメージ
- Host: GitHub
- URL: https://github.com/ramenjuniti/julia-pycall-mecab-cabocha
- Owner: ramenjuniti
- Created: 2020-05-01T17:39:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T17:48:23.000Z (over 4 years ago)
- Last Synced: 2024-10-24T22:44:55.454Z (3 months ago)
- Topics: cabocha, docker, dockerfile, julia, mecab, mecab-ipadic-neologd, python
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/ramenjuniti/julia-pycall-mecab-cabocha
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# julia-pycall-mecab-cabocha
JuliaでPyCallを使ってMecabやCaboCha動かすDockerイメージ
辞書は[mecab-ipadic-neologd](https://github.com/neologd/mecab-ipadic-neologd)を利用
## Pull
```
docker pull ramenjuniti/julia-pycall-mecab-cabocha
```## Run
* Julia REPL
```
docker run -it --rm ramenjuniti/julia-pycall-mecab-cabocha
```* コンテナにログイン
```
docker run -it --rm ramenjuniti/julia-pycall-mecab-cabocha /bin/bash
```* ローカルディレクトリをマウント
```
docker run -it --rm -v "$PWD":/usr/myapp -w /usr/myapp ramenjuniti/julia-pycall-mecab-cabocha /bin/bash
```## example
分かち書き例
```julia
using PyCall
MeCab = pyimport("MeCab")
dic = ENV["DIC"]
mecab = MeCab.Tagger("-d $dic -Owakati")
println(mecab.parse("私はラーメンを食べたい。"))# 私 は ラーメン を 食べ たい 。
```