Hi Federico Have a look at the Load() method in moses/FF/ConstrainedDecoding.cpp. It seems that each line of the reference file should either contain a reference, or a sentence id and reference (tab separated). If there are blank lines are more than one tab, it will crash.
If you can't see what's wrong with your reference file, then add some code to print out the offending line, cheers - Barry On 07/01/15 13:52, f.fancellu wrote: > I specified the full path to the reference file but I am still getting > the same error. > Is there any particular format/encoding that the reference file should > be in? > > *Federico Fancellu* > /Research Assistant @ CNGL/ > /Trinity College, Dublin/ > /[email protected] <mailto:[email protected]>/ > > 2014-12-24 18:03 GMT+00:00 Hieu Hoang <[email protected] > <mailto:[email protected]>>: > > specify the absolute, full path to the reference file > > > On 24/12/14 22:13, f.fancellu wrote: >> Hi, >> >> I have the get the following error when applying the >> ConstrainedDecoding feature in my Config file (attached to the >> present mail). >> >> Exception: moses/FF/ConstrainedDecoding.cpp:66 in virtual void >> Moses::ConstrainedDecoding::Load() threw util::Exception'. >> >> Reference file not loaded >> >> I don't understand why this is happening. The path inserted is >> correct (file in the same folder). >> >> The command I run is: >> >> ~/mosesdecoder/bin/moses_chart -drop-unknown -threads 12 -f >> nist08.filtered.ini.13.v2 -T ../traces/nist_08.neg_ref.trace -osg >> ../graphs/nist_08.neg_ref.graph < ../doc/nist_08.src > >> ../trans/output_fd >> >> Cheers! >> >> F. >> >> >> >> _______________________________________________ >> Moses-support mailing list >> [email protected] <mailto:[email protected]> >> http://mailman.mit.edu/mailman/listinfo/moses-support > > > > > _______________________________________________ > 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
