定番の係り受け解析器。
事前にCRF++, MeCab (とその辞書) をインストールしておくと良い。
$ curl -L --retry 8 -O http://cabocha.googlecode.com/files/cabocha-0.66.tar.bz2 $ bzip2 -cd cabocha-0.66.tar.bz2 | tar xvf - $ cd cabocha-0.66 $ curl -L --retry 8 -O http://quruli.ivory.ne.jp/download/cabocha-0.60.diff.gz $ gzip -cd cabocha-0.60.diff.gz | patch -p1 $ bash configure --with-charset=UTF8 --with-posset=UNIDIC $ make $ sudo make install
configure のオプションはUniDic, UTF-8向け。
音声認識システム Kaldi 向けの改変を含めた。
$ curl -L --retry 8 -O http://www.portaudio.com/archives/pa_stable_v19_20111121.tgz $ gzip -cd pa_stable_v19_20111121.tgz | tar xvf - $ cd portaudio $ curl -L --retry 8 -O http://quruli.ivory.ne.jp/download/pa_stable_v19_20111121.diff.gz $ gzip -cd pa_stable_v19_20111121.diff.gz | patch -p1 $ bash configure --enable-cxx --disable-mac-universal $ make $ sudo make install
事前に iconv, libsndfile, PortAudio (V19系) を入れておくと良い。
$ curl -L --retry 8 -O http://jaist.dl.sourceforge.jp/julius/56549/julius-4.2.2.tar.gz $ gzip -cd julius-4.2.2.tar.gz | tar xvf - $ cd julius-4.2.2/ $ env LC_ALL=C sed -i -r 's|return;|return -1;|' julius/main.c $ bash configure --enable-words-int --with-mictype=portaudio --disable-zlib $ make $ sudo make install
CFLAGS
などはお好みで。
【補足】 Mac OS X (Snow Leopard, Lion, Mountain Lion) 上で 32 ビット・バイナリを組む方法をweb上でよく見けかますが、 PortAudio を 64 ビット・バイナリで組めば Julius 自体も 64 ビット・バイナリで組むことができます。
$ curl -L --retry 8 -O http://darts-clone.googlecode.com/files/darts-clone-0.32g.tar.gz $ gzip -cd darts-clone-0.32g.tar.gz | tar xvf - $ cd darts-clone-0.32g $ bash configure $ make && make check $ sudo make install
事前に darts-clone を入れておくと良い。
$ curl -L --retry 8 -O http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/pecco/pecco-2012-12-12.tar.xz $ xz -cd pecco-2012-12-12.tar.xz | tar xvf - $ cd pecco-2012-12-12/ $ curl -L --retry 8 -O http://quruli.ivory.ne.jp/download/pecco-2012-12-12.diff.gz $ gzip -cd pecco-2012-12-12.diff.gz | patch -p1 $ bash configure --with-trie-impl=darts-clone $ make $ sudo make install
パッチはClang 3.1以降かGCCであれば適用しない方が良い。
$ curl -L --retry 8 -O http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/opal/opal-2013-01-12.tar.xz $ xz -cd opal-2013-01-12.tar.xz | tar xvf - $ cd opal-2013-01-12 $ bash configure $ make $ sudo make install
CFLAGS
などはお好みで。
$ curl -L --retry 8 -O http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_1.1.24+nmu2.tar.gz $ gzip -cd libpaper_1.1.24+nmu2.tar.gz | tar xvf - $ cd libpaper-1.1.24+nmu2/ $ bash configure $ make $ sudo make install
事前に darts-clone を入れておくと良い。
$ curl -L --retry 8 -O http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/pecco/pecco-2013-01-21.tar.xz $ xz -cd pecco-2013-01-21.tar.xz | tar xvf - $ cd pecco-2013-01-21/ $ bash configure --with-trie-impl=darts-clone $ make $ sudo make install
重み付き有限状態トランスデューサの編集ツール。
CXXFLAGS
などはお好みで。
$ curl -L --retry 8 -O http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/openfst-1.3.3.tar.gz $ gzip -cd openfst-1.3.3.tar.gz | tar xvf - $ cd openfst-1.3.3/ $ bash configure --enable-static --enable-bin --enable-far --enable-ngram-fsts --enable-lookahead-fsts --enable-pdt $ make && make check $ sudo make install
事前に Boost C++ Libraries と XZ Utils をインストールしておくと良い。
$ curl -L --retry 8 -O http://kheafield.com/code/kenlm.tar.gz $ gzip -cd kenlm.tar.gz | tar xvf - $ cd kenlm $ curl -L --retry 8 -O http://quruli.ivory.ne.jp/download/kenlm.diff.gz $ gzip -cd kenlm.diff.gz | patch -p1 $ make PREFIX=/usr/local $ sudo make PREFIX=/usr/local install $ ./bjam $ rm bin/config.log $ sudo cp -r bin /usr/local/