hi vinh
1. SRILM has it's own mailing list. It might be better to ask them
http://www.speech.sri.com/projects/srilm/
2. There are better, newer, freer language model toolkits, eg. KenLM.
Unless you are doing something that's specific to SRILM, I would
recommend you use KenLM. It is included with Moses so you only have to
compile Moses and you will get KenLM as well.
3. If you are going to use Moses, I would recommend using Linux rather
than OSX. Many Moses' components are written on Linux and have to been
tested on OSX. You may run into problems.
On 15/03/2017 14:29, Ngô Thị Vinh wrote:
Hello moses team,
I am a newer in moses, I compile SRILM on mac os el capitan but get an
error:
make[2]: [/Users/admin/translation/srilm/bin/macosx/maxalloc] Error 1
(ignored)
c++ -Wall -Wno-unused-variable -Wno-uninitialized
-Wno-overloaded-virtual -DINSTANTIATE_TEMPLATES
-I/opt/local/libexec/macports/include -I.
-I/Users/admin/translation/srilm/include -DHAVE_ZOPEN -fPIC -u
_matherr -L/Users/admin/translation/srilm/lib/macosx -g -O2
-fno-common -o ../bin/macosx/ngram ../obj/macosx/ngram.o
../obj/macosx/liboolm.a
/Users/admin/translation/srilm/lib/macosx/libflm.a
/Users/admin/translation/srilm/lib/macosx/libdstruct.a
/Users/admin/translation/srilm/lib/macosx/libmisc.a
-L/opt/local/libexec/macports/lib/tcl8.5 -ltcl8.5 -lm -liconv 2>&1 |
c++filt
Undefined symbols for architecture x86_64:
"File::offset(std::basic_ostream<char, std::char_traits<char> >&)",
referenced from:
NgramCounts<float>::readBinaryNode(Trie<unsigned int, float>&,
unsigned int, unsigned int, File&, long long&, bool, Array<unsigned
int>&) in liboolm.a(ClassNgram.o)
Ngram::readBinaryNode(Trie<unsigned int, BOnode>&, unsigned int,
unsigned int, File&, long long&, bool, Array<unsigned int>&) in
liboolm.a(NgramLM.o)
Ngram::skipToNextTrie(File&, unsigned int) in liboolm.a(NgramLM.o)
Ngram::readBinaryV1Node(Trie<unsigned int, BOnode>&, File&, File&,
bool, Array<unsigned int>&, unsigned int) in liboolm.a(NgramLM.o)
Ngram::writeBinaryNode(Trie<unsigned int, BOnode>&, unsigned int,
File&, long long&) in liboolm.a(NgramLM.o)
Ngram::writeBinaryV1Node(Trie<unsigned int, BOnode>&, File&, File&,
long long&, unsigned int) in liboolm.a(NgramLM.o)
Ngram::writeBinaryV1(File&) in liboolm.a(NgramLM.o)
...
"File::position(std::basic_ostream<char, std::char_traits<char> >&)",
referenced from:
RefList::read(File&, bool) in liboolm.a(RefList.o)
ClassNgram::readClasses(File&) in liboolm.a(ClassNgram.o)
NgramCounts<float>::read(File&, unsigned int, bool) [clone .part.83]
in liboolm.a(ClassNgram.o)
NgramCounts<float>::readBinary(File&, unsigned int, bool) in
liboolm.a(ClassNgram.o)
PQCodebook::read(File&) in liboolm.a(Prob.o)
AdaptiveMix::read(File&, bool) in liboolm.a(AdaptiveMix.o)
HMMofNgrams::read(File&, bool) in liboolm.a(HMMofNgrams.o)
I think it can not found some funntion:
NgramCounts<float>::readBinaryNode(), Ngram::skipToNextTrie(),.....
I do not know to get these funtions from what library?
Please tell me about error!
Thank you very much!
--
*Ngô Thị Vinh*
Faculty of Electronics and Communications,
Thai Nguyen University of Information and Communication Technology (ICTU).
TEL: 0987 706 830
Email: [email protected] <mailto:[email protected]>_
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support
--
Hieu Hoang
http://moses-smt.org/
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support