Hi Llio, It looks like the compiler isn't finding the SRILM files where it expects them. On each compile line, you should see something like "-I /some/path/SRILM-1.5/include", which should be where your SRILM installation is.
Once this is addressed, the following error will go away: LanguageModelSRI.h:28:19: error: Vocab.h: No such file or directory Chris On Jan 25, 2008 12:36 PM, Llio Humphreys <[EMAIL PROTECTED]> wrote: > Dear Chris/Moses support,I resolved this problem by setting the ACLOCAL > and AUTOMAKE values in regenerate-makefiles.sh as follows: > ACLOCAL="/opt/local/bin/aclocal-1.10" > AUTOMAKE="/opt/local/bin/automake- 1.10" > > I was then able to proceed with the command > ./configure --with-srilm=/path-to-srilm > > I am now stuck with problems with the following command: > make -j 4 > > Early warnings are: > > ConfusionNet.cpp :188: warning: ignoring #pragma warning > ConfusionNet.cpp:193: warning: ignoring #pragma warning > ConfusionNet.cpp:184: warning: unused parameter 'factorsToPrint' > DecodeStepGeneration.cpp:82: warning: unused parameter 'toc' > DecodeStepGeneration.cpp:82: warning: unused parameter 'adhereTableLimit' > Factor.cpp:26: warning: unused parameter 'direction' > Factor.cpp:26: warning: unused parameter 'factorType' > Factor.cpp:26: warning: unused parameter 'direction' > Factor.cpp:26: warning: unused parameter 'factorType' > Factor.cpp:33: warning: unused parameter 'direction' > Factor.cpp:33: warning: unused parameter 'factorType' > Factor.cpp:33: warning: unused parameter 'direction' > Factor.cpp:33: warning: unused parameter 'factorType' > InputType.cpp :49: warning: unused parameter 'start' > InputType.cpp:49: warning: unused parameter 'end' > Hypothesis.h: In constructor 'Hypothesis::Hypothesis(const InputType&, > const TargetPhrase&)': > Hypothesis.h:79: warning: 'Hypothesis::m_transOpt' will be initialized > after > Hypothesis.h:64: warning: 'const Phrase& Hypothesis::m_targetPhrase' > Hypothesis.cpp:47: warning: when initialized here > Hypothesis.h: In constructor 'Hypothesis::Hypothesis(const Hypothesis&, > const TranslationOption&)': > Hypothesis.h:79: warning: 'Hypothesis::m_transOpt' will be initialized > after > Hypothesis.h:64: warning: 'const Phrase& Hypothesis::m_targetPhrase' > Hypothesis.cpp:71: warning: when initialized here > Hypothesis.cpp: At global scope: > Hypothesis.cpp :387: warning: unused parameter 'source' > gzfilebuf.h:24: warning: unused parameter 's' > gzfilebuf.h:24: warning: unused parameter 'num' > gzfilebuf.h:28: warning: unused parameter 'sp' > gzfilebuf.h:28: warning: unused parameter 'which' > In file included from LanguageModelFactory.cpp:30: > LanguageModelSRI.h:28:19: error: Vocab.h: No such file or directory > > It finishes with: > > LanguageModelSRI.h:38: error: 'VocabIndex' was not declared in this scope > LanguageModelSRI.h:38: error: template argument 1 is invalid > LanguageModelSRI.h:38: error: template argument 2 is invalid > LanguageModelSRI.h:39: error: ISO C++ forbids declaration of 'Vocab' with > no type > LanguageModelSRI.h:39: error: expected ';' before '*' token > LanguageModelSRI.h:41: error: 'VocabIndex' does not name a type > LanguageModelSRI.h:43: error: 'VocabIndex' has not been declared > LanguageModelSRI.h:43: error: 'VocabIndex' has not been declared > LanguageModelSRI.h:45: error: 'VocabIndex' does not name a type > LanguageModelSRI.h:46: error: 'VocabIndex' does not name a type > make[2]: *** [LanguageModelFactory.o] Error 1 > make[2]: *** Waiting for unfinished jobs.... > mv -f .deps/Hypothesis.Tpo .deps/Hypothesis.Po > make[2]: *** Waiting for unfinished jobs.... > mv -f .deps/LanguageModelMultiFactor.Tpo .deps/LanguageModelMultiFactor.Po > > mv -f .deps/LanguageModel.Tpo .deps/LanguageModel.Po > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > I looked up other messages to the Moses Support Group and there have been > instances where this was caused by a missing zlib.h file. However, I > checked my computer and it does have the zlib.h file in the same directory > as other common libraries such as string.h. > > Grateful for your help. > > Regards, > Llio > > > On Jan 25, 2008 3:54 PM, Llio Humphreys < [EMAIL PROTECTED]> wrote: > > > Dear Chris/Moses support, > > I am now re-installing the software, using the latest versions. > > > > I am following the Baseline instructions at > > http://www.statmt.org/wmt07/baseline.html, and I have followed the file > > hierarchy in those instructions. I'm experiencing problems with the > > following command: > > ./regenerate-makefiles.sh > > The final message is 'automake failed'. My automake version is automake > > (GNU automake) 1.6.3. > > > > Other messages include: > > > > - Makefile.am:6: directory should not contain `/' > > - moses/src/Makefile.am:63: libmoses_a_SOURCES was already defined > > in condition TRUE, which implies condition SRI_LM_TRUE > > - moses/src/Makefile.am:63: warning: automake does not support > > conditional definition of libmoses_a_SOURCES in libmoses_a_SOURCES > > > > > > Grateful for your advice. I am happy to send the terminal output if > > required. > > > > Thank you, > > Llio Humphreys > > > > > > > > On Jan 22, 2008 7:41 PM, Chris Dyer < [EMAIL PROTECTED]> wrote: > > > > > As far as I know, GIZA++ should compile with gcc 4.0.1. Make sure you > > > have the most recent version available from > > > http://code.google.com/p/giza-pp/ > > > > > > Chris > > > > > > > > > On Jan 22, 2008 2:36 PM, Llio Humphreys <[EMAIL PROTECTED]> wrote: > > > > > > > Dear Chris,many thanks for your reply. I checked the gcc version > > > > and it's 4.0.1. I am working on an Intel platform, so I think it's > > > > worth pursuing the Intel optimizing compiler. Does this mean that I > > > > won't > > > > be able to compile GIZA with -DBINARY_SEARCH_FOR_TTABLE? I downloaded > > > > Moses > > > > in May 2007. I noticed from another post that a more recent version was > > > > made available in October. Would it be worth me getting the newer > > > > version, > > > > and if so, are the installation steps the same as described in > > > > www.statmt.org/wmt07/baseline.html? > > > > Thank you, > > > > Llio > > > > > > > > > > > > On Jan 22, 2008 5:38 PM, Chris Dyer < [EMAIL PROTECTED]> wrote: > > > > > > > > > Hi Lilo, > > > > > This is a known issue with GIZA and certain versions of g++ in the > > > > > 3.3 series, which don't quite implement the c++ standard > > > > > properly. I didn't spend too much time looking into fixing this, but > > > > > it > > > > > seemed any solution would have been a rather nasty hack to GIZA > > > > > (which is > > > > > already rather difficult for humans to read), so I gave up. My > > > > > advice is to > > > > > get a newer version of gcc (> 3.4) or an older version (<=2.95.2) > > > > > or, if you're working on an intel platform, try the intel optimizing > > > > > compiler (it's free for non-commercial uses and isn't as difficult to > > > > > install as a separate version of gcc). > > > > > > > > > > Chris > > > > > > > > > > > > > > > On Jan 22, 2008 12:00 PM, Llio Humphreys <[EMAIL PROTECTED] > > > > > > wrote: > > > > > > > > > > > Dear Moses Support, > > > > > > I am now trying to re-install GIZA with > > > > > > -DBINARY_SEARCH_FOR_TTABLE by > > > > > > manually amending the Makefile, backing up the optimized folder, > > > > > > and > > > > > > running the make command again. However, I am still getting > > > > > > problems > > > > > > as the following shows. > > > > > > > > > > > > llio:~/Documents/MT/GIZA++-v2 lliohumphreys$ mv GIZA++ > > > > > > GIZA++.bak > > > > > > llio:~/Documents/MT/GIZA++-v2 lliohumphreys$ ls optimized/ > > > > > > ATables.o NTables.o > > > > > > getSentence.o model3.o > > > > > > reports.o > > > > > > AlignTables.o Parameter.o > > > > > > hmm.o > > > > > > model345-peg.o > > > > > > transpair_model3.o > > > > > > Dictionary.o Perplexity.o > > > > > > main.o > > > > > > model3_viterbi.o > > > > > > transpair_model4.o > > > > > > ForwardBackward.o TTables.o > > > > > > model1.o model3_viterbi_with_tricks.o > > > > > > transpair_model5.o > > > > > > HMMTables.o alignment.o > > > > > > model2.o myassert.o > > > > > > utility.o > > > > > > MoveSwapMatrix.o collCounts.o > > > > > > model2to3.o parse.o > > > > > > vocab.o > > > > > > llio:~/Documents/MT/GIZA++-v2 lliohumphreys$ mv optimised > > > > > > optimised.bak > > > > > > mv: rename optimised to optimised.bak: No such file or directory > > > > > > llio:~/Documents/MT/GIZA++-v2 lliohumphreys$ mv optimized > > > > > > optimized.bak > > > > > > llio:~/Documents/MT/GIZA++-v2 lliohumphreys$ ls > > > > > > ATables.cc HMMTables.h > > > > > > Vector.h model2.cc > > > > > > snt2cooc.out > > > > > > ATables.h LICENSE > > > > > > WordClasses.h model2.h > > > > > > snt2plain.cc > > > > > > AlignTables.cc Makefile > > > > > > alignment.cc model2to3.cc > > > > > > snt2plain.out > > > > > > AlignTables.h Makefile.definitions > > > > > > alignment.h model3.cc > > > > > > trainGIZA++.sh > > > > > > Array.h Makefile.src > > > > > > collCounts.cc model3.h > > > > > > transpair_model1.h > > > > > > Array2.h Makefile~ > > > > > > collCounts.h model345-peg.cc > > > > > > transpair_model2.h > > > > > > Array4.h MoveSwapMatrix.cc > > > > > > defs.h > > > > > > model3_viterbi.cc > > > > > > transpair_model3.cc > > > > > > D4Tables.h MoveSwapMatrix.h > > > > > > dependencies model3_viterbi_with_tricks.cc > > > > > > transpair_model3.h > > > > > > D5Tables.h NTables.cc > > > > > > file_spec.h myassert.cc > > > > > > transpair_model4.cc > > > > > > Dictionary.cc NTables.h > > > > > > getSentence.cc myassert.h > > > > > > transpair_model4.h > > > > > > Dictionary.h Parameter.cc > > > > > > getSentence.h mymath.h > > > > > > transpair_model5.cc > > > > > > FlexArray.h Parameter.h > > > > > > hmm.cc > > > > > > mystl.h > > > > > > transpair_model5.h > > > > > > ForwardBackward.cc Perplexity.cc > > > > > > hmm.h > > > > > > optimized.bak > > > > > > transpair_modelhmm.h > > > > > > ForwardBackward.h Perplexity.h > > > > > > logprob.cc parse.cc > > > > > > utility.cc > > > > > > GIZA++.bak Pointer.h > > > > > > logprob.h plain2snt.cc > > > > > > utility.h > > > > > > GNU.GPL README > > > > > > main.cc plain2snt.out > > > > > > vocab.cc > > > > > > Globals.h TTables.cc > > > > > > model1.cc reports.cc > > > > > > vocab.h > > > > > > HMMTables.cc TTables.h > > > > > > model1.h snt2cooc.cc > > > > > > llio:~/Documents/MT/GIZA++-v2 lliohumphreys$ mkdir optimized > > > > > > llio:~/Documents/MT/GIZA++-v2 lliohumphreys$ make GIZA++ > > > > > > g++ -Wall -W -Wno-deprecated -DBINARY_SEARCH_FOR_TTABLE -O2 > > > > > > -DNDEBUG > > > > > > -DWORDINDEX_WITH_4_BYTE -DBINARY_SEARCH_FOR_TTABLE -c > > > > > > Parameter.cc -o > > > > > > optimized/Parameter.o > > > > > > g++ -Wall -W -Wno-deprecated -DBINARY_SEARCH_FOR_TTABLE -O2 > > > > > > -DNDEBUG > > > > > > -DWORDINDEX_WITH_4_BYTE -DBINARY_SEARCH_FOR_TTABLE -c > > > > > > myassert.cc -o > > > > > > optimized/myassert.o > > > > > > g++ -Wall -W -Wno-deprecated -DBINARY_SEARCH_FOR_TTABLE -O2 > > > > > > -DNDEBUG > > > > > > -DWORDINDEX_WITH_4_BYTE -DBINARY_SEARCH_FOR_TTABLE -c > > > > > > Perplexity.cc > > > > > > -o optimized/Perplexity.o > > > > > > g++ -Wall -W -Wno-deprecated -DBINARY_SEARCH_FOR_TTABLE -O2 > > > > > > -DNDEBUG > > > > > > -DWORDINDEX_WITH_4_BYTE -DBINARY_SEARCH_FOR_TTABLE -c model1.cc-o > > > > > > optimized/model1.o > > > > > > g++ -Wall -W -Wno-deprecated -DBINARY_SEARCH_FOR_TTABLE -O2 > > > > > > -DNDEBUG > > > > > > -DWORDINDEX_WITH_4_BYTE -DBINARY_SEARCH_FOR_TTABLE -c model2.cc-o > > > > > > optimized/model2.o > > > > > > g++ -Wall -W -Wno-deprecated -DBINARY_SEARCH_FOR_TTABLE -O2 > > > > > > -DNDEBUG > > > > > > -DWORDINDEX_WITH_4_BYTE -DBINARY_SEARCH_FOR_TTABLE -c model3.cc-o > > > > > > optimized/model3.o > > > > > > g++ -Wall -W -Wno-deprecated -DBINARY_SEARCH_FOR_TTABLE -O2 > > > > > > -DNDEBUG > > > > > > -DWORDINDEX_WITH_4_BYTE -DBINARY_SEARCH_FOR_TTABLE -c > > > > > > getSentence.cc > > > > > > -o optimized/getSentence.o > > > > > > g++ -Wall -W -Wno-deprecated -DBINARY_SEARCH_FOR_TTABLE -O2 > > > > > > -DNDEBUG > > > > > > -DWORDINDEX_WITH_4_BYTE -DBINARY_SEARCH_FOR_TTABLE -c > > > > > > TTables.cc -o > > > > > > optimized/TTables.o > > > > > > TTables.cc :40: error: explicit specialization of 'void > > > > > > tmodel<COUNT, > > > > > > PROB>::printProbTable(const char*, const std::vector<WordEntry, > > > > > > std::allocator<WordEntry> >&, const std::vector<WordEntry, > > > > > > std::allocator<WordEntry> >&, bool) const' must be introduced by > > > > > > > > > > > > 'template <>' > > > > > > TTables.cc:40: error: template-id 'printProbTable<>' for 'void > > > > > > tmodel<COUNT, PROB>::printProbTable(const char*, const > > > > > > std::vector<WordEntry, std::allocator<WordEntry> >&, const > > > > > > std::vector<WordEntry, std::allocator<WordEntry> >&, bool) > > > > > > const' does > > > > > > not match any template declaration > > > > > > TTables.cc:40: error: invalid function declaration > > > > > > make: *** [optimized/TTables.o] Error 1 > > > > > > llio:~/Documents/MT/GIZA++-v2 lliohumphreys$ > > > > > > > > > > > > I'd be grateful to know whether you have come across this > > > > > > problem > > > > > > before and what is the best way to resolve it. > > > > > > Many thanks, > > > > > > Llio Humphreys > > > > > > > > > > > > > > > > > > On 1/17/08, Chris Dyer <[EMAIL PROTECTED]> wrote: > > > > > > > You'll see this error if you build GIZA++ without > > > > > > -DBINARY_SEARCH_FOR_TTABLE > > > > > > > . It's harmless, although it means GIZA will use a bit more > > > > > > memory than it > > > > > > > would otherwise. > > > > > > > Chris > > > > > > > > > > > > > > 2008/1/17 menor bangget < [EMAIL PROTECTED] >: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi all, > > > > > > > > > > > > > > > > I ran GIZA, and I found error about "parameter > > > > > > 'coocurrencefile' does not > > > > > > > exist". Is it ok, 'cause I can still get good output with this > > > > > > kind of > > > > > > > error? > > > > > > > > > > > > > > > > Thanks for your help. > > > > > > > > > > > > > > > > Amri > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ________________________________ > > > > > > > Bergabunglah dengan orang-orang yang berwawasan, di bidang > > > > > > Anda di Yahoo! > > > > > > > Answers > > > > > > > > _______________________________________________ > > > > > > > > Moses-support mailing list > > > > > > > > Moses-support@mit.edu > > > > > > > > http://mailman.mit.edu/mailman/listinfo/moses-support > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > Moses-support mailing list > > > > > > > Moses-support@mit.edu > > > > > > > http://mailman.mit.edu/mailman/listinfo/moses-support > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support