A Tiny Morphological Analyzer
by Yusuke Shinyama


0. PREREQUISITE

  Python-2.3 or newer. (http://www.python.org/)
  JapaneseCodecs-1.4.9 or newer. (http://www.python.jp/Zope/download/JapaneseCodecs/)
  (optional) python-cdb-0.32 or newer. (http://pilcrow.madison.wi.us/)
  ipadic-2.4.0 or newer. (http://chasen.aist-nara.ac.jp/stable/ipadic/)


1. BUILD

  CAUTION: compiling the dictionary requires about 170MB of memory.

  (IN UNIX)
  $ make IPADIC=/src/ipadic

  (IN WINDOWS)
  1. Install Python2.3 and JapaneseCodecs in, say, C:\Python23\.
  2. Copy all .dic files and .cha files into morph0/ directory.
  3.
     C:\...\morph0> c:\python23\python make_cforms.py cforms.cha > cforms.py
     C:\...\morph0> c:\python23\python make_matrix_table.py matrix.cdb connect.cha > table.py
     C:\...\morph0> c:\python23\python dictool.py chadic.cdb *.dic

  (Warnings might appear for Noun.proper.dic, never mind.)

  Files necessary to run the program:

    morph0.py
    matrix.cdb
    chadic.cdb
    pycdb.py (if necessary)


2. HOW TO USE

  $ cat t
  ĤդäȤ

  $ python2.3 morph.py t
      եȥ      ̾-
                    -ʽ-
  դäȤ        եåȥ        դäȤ     ư-Ω  ʡй      Ϣѥ³
                    ư  ü졦     ܷ
                    -
  EOS
