在mac上buildsunpinyin
git clone git://github.com/sunpinyin/sunpinyin.git
然后执行scons,build出错了,但最后显示scons: done building
targets.
make -C raw WGET="curl -O" TAR="tar"
tar -jxf lm_sc.t3g.arpa.tar.bz2
touch stamp-lm
tar -jxf dict.utf8.tar.bz2
touch stamp-dict
done
make -C data WGET="curl -O" TAR="tar"
./tslmpack ../raw/lm_sc.t3g.arpa ../raw/dict.utf8 lm_sc.t3g
Loading lexicon...done.
Loading ARPA slm...Error:"吹求" not found in lexicon.
Error:"吹求" not found in lexicon.
first pass...
Compressing pr values...65536 float values ==> 65536 values
Compressing bow values...16384 float values ==> 16384 values
Writing out...done!
./genpyt -i ../raw/dict.utf8 -o pydict_sc.bin -l pydict_sc.log.utf8 -s lm_sc.t3g
Opening language model...done!
Adding pinyin and corresponding words...
Warning! unrecognized syllable xx
Warning! unrecognized syllable xx
Warning! unrecognized syllable xx
Warning! unrecognized syllable ng
Warning! unrecognized syllable ng
Warning! unrecognized syllable by
143886 primitive nodes
203869 total nodes
Writing out...done!
Printing the lexicon out to log_file...done!
./genpyt -e le -i ../raw/dict.utf8 -o pydict_sc.bin.le -l pydict_sc.log.utf8 -s
lm_sc.t3g
Opening language model...done!
Adding pinyin and corresponding words...
Warning! unrecognized syllable xx
Warning! unrecognized syllable xx
Warning! unrecognized syllable xx
Warning! unrecognized syllable ng
Warning! unrecognized syllable ng
Warning! unrecognized syllable by
143886 primitive nodes
203869 total nodes
Writing out...done!
Printing the lexicon out to log_file...done!
./genpyt -e be -i ../raw/dict.utf8 -o pydict_sc.bin.be -l pydict_sc.log.utf8 -s
lm_sc.t3g
Opening language model...done!
Adding pinyin and corresponding words...
Warning! unrecognized syllable xx
Warning! unrecognized syllable xx
Warning! unrecognized syllable xx
Warning! unrecognized syllable ng
Warning! unrecognized syllable ng
Warning! unrecognized syllable by
143886 primitive nodes
203869 total nodes
Writing out...done!
host endian is different from build endian. log_file will not be written.
./tslmendian -e le -i lm_sc.t3g -o lm_sc.t3g.le
converting from little-endian to little-endian ...done.
./tslmendian -e be -i lm_sc.t3g -o lm_sc.t3g.be
converting from little-endian to big-endian ...done.
done
scons: done building targets.
执行下一步make clean; make会出error
The following build commands failed:
SunPinyin:
CompileC build/SunPinyin.build/Debug/SunPinyin.build/Objects-normal/i386/userdict.o /Users/xt/Downloads/sunpinyin/wrapper/macos/../../src/ime-core/userdict.cpp normal i386 c++ com.apple.compilers.gcc.4_2
(1 failure)
make: *** [debug] Error 1
请问是什么原因呢,亟待解决,谢谢。
Original issue reported on code.google.com by xiaoteng...@gmail.com on 22 May 2011 at 6:26
Original issue reported on code.google.com by
xiaoteng...@gmail.com
on 22 May 2011 at 6:26