- 追加された行はこのように表示されます。
- 削除された行は
このように表示されます。
!SimString の g++4.7 での変更
http://www.chokkan.org/software/simstring/index.html.ja
g++-3.3 ではコンパイルが通るのですが 4.7 ではエラーが出てしまい
--- ./simstring-1.0/include/simstring/memory_mapped_file_posix.h 2010-03-07 17:30:29.000000000 +0900
+++ ./simstring-1.0.oo/include/simstring/memory_mapped_file_posix.h 2015-01-20 08:38:22.982697236 +0900
@@ -40,6 +40,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
+#include <unistd.h>
class memory_mapped_file_posix :
public memory_mapped_file_base
!BUILD の仕方
## autogen と automake をインストールしておこう
cd ./simstring-1.0/
sh ./autogen.sh
./configure --prefix=$HOME/opt
make
make install
cd ./swing/python
./prepare.sh --swig
## swig のバージョンが合わないので作り直し
## swig -c++ -python -o export_wrap.cpp export.i
python setup.py build_ext
python setup.py install --home=$HOME/opt
!google 日本語 N-gram コーパス
https://code.google.com/p/ssgnc/
http://s-yata.jp/corpus/nwc2010/ngrams/