➜ echo あの壁にかかっている絵はきれいですね | mecab -d /usr/local/lib/mecab/dic/unidic | jdepp 2> /dev/null | to_tree.py
# S-ID: 1; J.DepP
0: あの━━┓
1: 壁に━━┓ ┃
2: かかっている━━┓ ┃
3: 絵は━━┫
4: きれいですねEOS
➜ echo あの壁にかかっている絵はきれいですね | mecab -d /usr/local/lib/mecab/dic/unidic | jdepp 2> /dev/null | to_chunk.py
# S-ID: 1; J.DepP
あの │ 壁 に │ かかっ て いる │ 絵 は │ きれい です ね EOS
Download and install instructions on Naoki Yoshinaga's website: http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/jdepp/#dl
@MeikyuuTrader also make sure you have Python 2.x available because jdepp needs it even to build—Python 3 didn't work. I love pyenv, it lets me run
pyenv local 2.7.14
in the jdepp directory so that any invocation ofpython
in that directory will automatically run 2.7.14. With the Makefile fix and setting up Python 2 for the directory, I got jdepp to build.