/nlpdata

nlp and machine learning related code

Primary LanguageMakefile

nlpdata

This is a quick and dirty wrap of the 3.4 version of ltp Chinese parser form HIT, with some code hacking and modified building option for Clang on freeBsd. The wrapping code is excerpted from nlp bamboo.

To build on freebsd 10.3 with CLANG as root

  1. ln -s [the code path] /root/ltp
  2. cd ~/ltp/ltpbuild
  3. make
  4. cd ~/ltp/postgres/chinese_parser 5 ln -s [the code path]/ltp /opt/ltp
  5. gmake install
  6. ln -s [the code path]/ltp/lib/libsegmentor.so.0.2.0 /usr/lib/libsegmentor.so.0.2.0
  7. su postgres
  8. psql# \i chinese_parser.sql