Here's I built GIZA++ on Ubuntu 10.10: user@ubuntu:~/mosesdecoder$ mkdir tmp
user@ubuntu:~/mosesdecoder$ cd tm wget http://giza-pp.googlecode.com/files/giza-pp-v1.0.5.tar.gz user@ubuntu:~/mosesdecoder/tmp$ tar xzvf giza-pp-v1.0.5.tar.gz user@ubuntu:~/mosesdecoder/tmp$ cd giza-pp Unfortunately, you have to alter a source file to compile it with the latest GCC version (I wasn't the one who found this solution), it is located in GIZA++-v2/file_spec.h Before: char time_stmp[17]; After: char time_stmp[19]; Before: sprintf(time_stmp, "%02d-%02d-%02d.%02d%02d%02d.", local->tm_year, After: sprintf(time_stmp, "%04d-%02d-%02d.%02d%02d%02d.", 1900 + local->tm_year, Continue to build with: user@ubuntu:~/mosesdecoder/tmp/giza-pp$ make user@ubuntu:~/mosesdecoder/tmp/giza-pp$ cp GIZA++-v2/GIZA++ ../../bin user@ubuntu:~/mosesdecoder/tmp/giza-pp$ cp mkcls-v2/mkcls ../../bin user@ubuntu:~/mosesdecoder/tmp/giza-pp$ cp GIZA++-v2/snt2cooc.out ../../bin user@ubuntu:~/mosesdecoder/tmp/giza-pp$ cd ../../ user@ubuntu:~/mosesdecoder$ rm -rf tmp You can read the Moses Step by Step Instructions which may a bit outdated though: http://www.statmt.org/moses_steps.html Unfortuantely, I don't know where to find a Corpus in your language. Regards, Andreas On Wed, Mar 2, 2011 at 9:56 AM, keval Shah <[email protected]> wrote: > > > Sir, > > I am a final year student studying University of Pune,India .I am making > Phrased Based Statistical Machine Translator: English to Marathi Translator > using Moses Decoder. > > 2) I need all of your help to build this project as I have only 15 days. > > 3) How to compile GIZA ++ make gives following errors > > make -C GIZA++-v2 > make[1]: Entering directory `/home/jschroel/demo/tools/giza-pp/GIZA++-v2' > g++ -Wall -W -Wno-deprecated -O3 -DNDEBUG -DWORDINDEX_WITH_4_BYTE > -DBINARY_SEARCH_FOR_TTABLE -c Parameter.cpp -o optimized/Parameter.o > In file included from Parameter.h:28, > from Parameter.cpp:23: > Pointer.h:27:20: error: stream.h: No such file or directory > Parameter.cpp:24:21: error: fstream.h: No such file or directory > In file included from Parameter.cpp:23: > Parameter.h: In function ‘unsigned int mConvert(const std::string&, unsigned > int&)’: > Parameter.h:35: error: ‘strcasecmp’ was not declared in this scope > In file included from Parameter.cpp:23: > Parameter.h:36: error: ‘strcasecmp’ was not declared in this scope > Parameter.h: In function ‘int mConvert(const std::string&, int&)’: > Parameter.h:40: error: ‘strcasecmp’ was not declared in this scope > Parameter.h:41: error: ‘strcasecmp’ was not declared in this scope > Parameter.h: In function ‘bool mConvert(const std::string&, bool&)’: > Parameter.h:48: error: ‘strcasecmp’ was not declared in this scope > Parameter.h:49: error: ‘strcasecmp’ was not declared in this scope > Parameter.h: In function ‘short int mConvert(const std::string&, short > int&)’: > Parameter.h:53: error: ‘strcasecmp’ was not declared in this scope > Parameter.h:54: error: ‘strcasecmp’ was not declared in this scope > Parameter.h: In function ‘short unsigned int mConvert(const std::string&, > short unsigned int&)’: > Parameter.h:58: error: ‘strcasecmp’ was not declared in this scope > Parameter.h:59: error: ‘strcasecmp’ was not declared in this scope > Parameter.cpp: In function ‘bool writeParameters(std::ofstream&, const > ParSet&, int)’: > Parameter.cpp:48: warning: ignoring return value of ‘char* getcwd(char*, > size_t)’, declared with attribute warn_unused_result > make[1]: *** [optimized/Parameter.o] Error 1 > make[1]: Leaving directory `/home/jschroel/demo/tools/giza-pp/GIZA++-v2' > make: *** [gizapp] Error 2 > > > 4) Also How i can get Bilingual Marathi Coropora and some guidance in How > to use giza++ ? > > > > Keval K Shah > Society for Computer Technology and Research > PICT,Pune > > > > > > > > > -- > Disclaimer:This email may contain > confidential matter... > > > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > > _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
