Hello all,
I am trying to get the alignment information from a binary phrase table
that was generated from a plain phrase table containing alignment
information.
I load the phrase table through the following piece of code:
------------------
numScoreComponent=5;
numInputScores=0;
tableLimit=0;
weightWP=0;
input.push_back(0);
output.push_back(0);
weight.push_back(0); weight.push_back(0);
weight.push_back(0); weight.push_back(0); weight.push_back(0);
PhraseDictionaryTreeAdaptor *pd=new
PhraseDictionaryTreeAdaptor(numScoreComponent, numInputScores);
pd->DisableCache();
if (!pd->Load(input, output, "/path/to/phrase/table", weight, tableLimit,
lmList, weightWP)) {
delete pd;
cerr<<"Error: Cannot load Moses binary phrase table,
path='"<<filePath<<"'\n";
exit(EXIT_FAILURE);
}
------------------
and I get the following error message:
reading bin ttable
size of OFF_T 8
ERROR:You are asking binary phrase table without word alignments but the
file do not exist. Please check if you had generated the correct phrase
table without word alignment
(phrase-table.binphr.srctree,phrase-table.binphr.tgtdata)
ERROR:bin ttable was read in a wrong way
When the binary phrase table does not contain any alignment information
it works without problems.
How should a binary phrase table with alignment information be loaded?
Should I change some parameters? Which? Any help will be very valuable.
Thank you very much in advance, and happy new year.
--
Felipe Sánchez Martínez <[email protected]>
Departamento de Lenguajes y Sistemas Informáticos
Universidad de Alicante, E-03071 Alicante (Spain)
Tel.: +34 965 903 400, ext: 2966 Fax: +34 965 909 326
http://www.dlsi.ua.es/~fsanchez
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support