➜ 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
@fasiha THANK YOU for all your help, I don't think I would get bloody J.DepP without you noticing
./configure
assigned python to no when it didn't exist. The woes of thinking a critical dependency would fail the script :). I was trying to install and get older gcc versions to run makefiles xDDespite having pyenv, it always returned no python. Which python never returned anything. I think you could get it working with pyenv, you'd need to make sure which python returns python 2.7.
I'm using Ubuntu so I outright installed python with apt-get and then set python2.7 to the be main version. After that, running
make clean && ./configure
showedchecking for python... /usr/bin/python
Also got file permission error when running
make install
due to/usr/bin/install: cannot create regular file '/usr/local/bin/jdepp': Permission denied
ran as sudo to fix that.Actually was so damned hard to get J.DepP installed.
Notes for anyone else
make install
so run it assudo make install