最新 追記

Hena Hena Nikki

2003|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|10|11|12|
2012|01|02|03|04|05|06|07|08|10|12|
2013|01|02|04|06|

2013.01.02 / Wednesday [長年日記]

* [computer/update] CaboCha ver.0.66

定番の係り受け解析器。

* [computer] CaboCha 0.66 を Mac OS X 10.6 にインストールする

事前に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向け。


2013.01.08 / Tuesday [長年日記]

* [computer] PortAudio 19-20111121 を Mac OS X 10.6 にインストールする

音声認識システム 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

* [computer] Julius 4.2.2 を Mac OS X 10.6 にインストールする

事前に 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 ビット・バイナリで組むことができます。


2013.01.17 / Thursday [長年日記]

* [computer] darts-clone 0.32g を Mac OS X 10.6 にインストールする

$ 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

* [computer] pecco 2012-12-12 を Mac OS X 10.6 にインストールする

事前に 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であれば適用しない方が良い。


2013.01.19 / Saturday [長年日記]

* [computer] opal 2013-01-12 を Mac OS X 10.6 にインストールする

$ 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

* [computer] libpaper 1.1.24+nmu2 を Mac OS X 10.6 にインストールする

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

2013.01.21 / Monday [長年日記]

* [computer] pecco 2013-01-21 を Mac OS X 10.6 にインストールする

事前に 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

2013.01.25 / Friday [長年日記]

* [computer/update] OpenFst ver.1.3.3

重み付き有限状態トランスデューサの編集ツール。

* [computer] OpenFst 1.3.3 を Mac OS X 10.6 にインストールする

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

2013.01.26 / Saturday [長年日記]

* [computer] KenLM を Mac OS X 10.6 にインストールする

事前に 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/

  • この日記には本日 名の方が訪問してくださっているようです。 また、昨日は 名の方が訪問してくださったようです。
  • この日記の更新情報の取得には antenna.lirs を利用するのがおすすめです。