Hi Jörg, as I recently discovered, Moses has a hard-coded constant which sets the maximum numbers of factors to 4 (in TypeDef.h) -- i.e. factors 0 to 3. The Bitset that throws the exception is defined with this constant as maximum, so adding a larger factor number results in an "out of range" error. Hopefully changing it should help. So I would guess that it's the number of factors, not the fact that output has a larger number of factors than input.
Mark On Mon, Oct 27, 2008 at 9:25 PM, J.Tiedemann <[EMAIL PROTECTED]> wrote: > > one more thing about factored models: > > I got the following error when using a generation step (0-4) to a > target language factor with an index (4) larger than the number of > factors on the source language side (=3): > > terminate called after throwing an instance of 'std::out_of_range' > what(): bitset::set > /bin/sh: line 1: 14432 Aborted > > This is in decoding - not training. > It worked fine when I manually changed the factor index to, for > example, 2 in the config file. not a big deal - I just wanted to > mention it. > > > Jorg > _______________________________________________ > 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
