Hi Raj The format of these tables is not described anywhere. You'd have to read the code in moses/TranslationModel/PhraseDictionaryTree.cpp, and then try to convert it it Java.
A better plan would be to use JNI to call the C++ code -- a similar approach has been followed in the python interface in contrib/python. This would insulate you from the low-level details, and from changes in the format, cheers - Barry On 26/11/14 03:22, Raj Dabre wrote: > Hello All, > > I know that Moses allows for binarization of a phrase table which can > be read on demand at decoding time. > We get 5 files named: phrase-table.binphr.* > I want to write my own routine in Java to read phrase pairs from these > on demand. > Can anyone guide me ? > > PS: If an explanation of the same for binary reordering tables can be > done then it would be great too. > > Thanks in advance. > > -- > Raj Dabre. > Research Student, > Graduate School of Informatics, > Kyoto University. > CSE MTech, IITB., 2011-2014 > > > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
