Hi, a "bad_alloc" is typically an indication that you ran out of RAM. I would suggest to look into the binary and compact phrase table implementations.
-phi On Thu, Sep 5, 2013 at 3:14 AM, rohit dholakia <[email protected]> wrote: > Hi, > > I am trying to use one of the features in moses that allows usage of two > translation tables for decoding. The directions are here : > > http://www.statmt.org/moses/?n=Moses.AdvancedFeatures#ntoc18 > > Made the following changes to the moses.ini file : > > # mapping steps > [mapping] > 0 T 0 > 1 T 1 > > 0 0 0 5 /global/scratch/rd/Thesis/UsingBothTables/baseline-table.gz > 0 0 0 5 /global/scratch/rd/Thesis/UsingBothTables/augmented.gz > > # translation model weights > [weight-t] > 0.0440237 > 0.0427656 > 0.0508153 > 0.0441958 > 0.0043927 > 0.058598 > 0.0660405 > 0.108836 > 0.0028447 > 0.0856689 > > The distortion weights are untouched, am using the same language model, > so, left that alone as well. only made the changes mentioned above ( two > tables, mapping change and ten translation weights ). > > When I run, > > *$MOSES_DIR/moses -f moses.ini < /global/scratch/rd/Thesis/data/devtest/ > devtest-clean.lower.ht > both.output.devtest.cl 2> err.both* > > I get the following output, ( only the last part shown ), > > *Loading table into memory...done.* > *Start loading text SCFG phrase table. Moses format : [14.000] seconds* > *Reading /global/scratch/rd/Thesis/UsingBothTables/baseline-table.gz* > * > ----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100 > * > * > **************************************************************************************************** > * > *Start loading text SCFG phrase table. Moses format : [41.000] seconds* > *Reading /global/scratch/rd/Thesis/UsingBothTables/augmented.gz* > * > ----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100 > * > * > **************************************************************************************************** > * > *Exception: std::bad_alloc* > > Where am I going wrong ? > > Thanks. > > _______________________________________________ > 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
