2GB is far too small. You probably need 4-8GB minimum

* Looking for MT/NLP opportunities *
Hieu Hoang
http://moses-smt.org/


On 12 March 2017 at 18:28, Sơn Nguyễn Văn <[email protected]> wrote:

> Hello,
>
> I installed Moses using Virtual machine ubuntu 14.04 32-bit.ova (
> http://www.statmt.org/moses/RELEASE-3.0/vm/). Memory for VM is 2Gb.
>
> When I run step "Testing" (from Baseline System) with command:
>
> * ~/mosesdecoder/bin/moses -f ~/working/mert-work/moses.ini*
>
> This is the result:
> hieu@hieu-VirtualBox:~$ /home/hieu/workspace/github/mosesdecoder/bin/moses
> -f /home/hieu/ working/mert-work/moses.ini Defined parameters (per
> moses.ini or switch): config: /home/hieu/ working/mert-work/moses.ini
> line=WordPenalty FeatureFunction: WordPenalty0 start: 0 end: 0 Exception:
> moses/ScoreComponentCollection.cpp:250 in void Moses::
> ScoreComponentCollection::Assign(const Moses::FeatureFunction*, const
> std::vector<float>&) threw util::Exception'. Feature function WordPenalty0
> specified 1 dense scores or weights. Actually has 0
>
> Using this command:
> /home/hieu/workspace/github/mosesdecoder/bin/moses -f
> /home/hieu/working/mert-work/moses.ini \ -i /home/hieu/working/a >
> /home/hieu/working/aa.txt
>
> Result:
> hieu@hieu-VirtualBox:~/working$ 
> /home/hieu/workspace/github/mosesdecoder/bin/moses
> -f /home/hieu/working/mert-work/moses.ini \ > -i /home/hieu/working/a.txt
> > /home/hieu/working/aa.txt Defined parameters (per moses.ini or switch):
> config: /home/hieu/working/mert-work/moses.ini distortion-limit: 6
> feature: UnknownWordPenalty WordPenalty PhrasePenalty
> PhraseDictionaryMemory name=TranslationModel0 num-features=4
> path=/home/hieu/working/train/model/phrase-table.gz input-factor=0
> output-factor=0 LexicalReordering name=LexicalReordering0 num-features=6
> type=wbe-msd-bidirectional-fe-allff input-factor=0 output-factor=0
> path=/home/hieu/working/train/model/reordering-table.wbe-msd-bidirectional-fe.gz
> Distortion KENLM lazyken=0 name=LM0 factor=0 
> path=/home/hieu/lm/news-commentary-v8.fr-en.blm.en
> order=3 input-factors: 0 input-file: /home/hieu/working/a mapping: 0 T 0
> threads: 8 weight: LexicalReordering0= 0.0723751 0.00375534 0.0524019
> 0.0411615 0.0241884 0.0165493 Distortion0= 0.0625359 LM0= 0.0700801
> WordPenalty0= -0.27279 PhrasePenalty0= 0.163331 TranslationModel0=
> 0.00903105 0.0843863 0.0633766 0.0640378 UnknownWordPenalty0= 1
> line=UnknownWordPenalty FeatureFunction: UnknownWordPenalty0 start: 0 end:
> 0 line=WordPenalty FeatureFunction: WordPenalty0 start: 1 end: 1
> line=PhrasePenalty FeatureFunction: PhrasePenalty0 start: 2 end: 2
> line=PhraseDictionaryMemory name=TranslationModel0 num-features=4
> path=/home/hieu/working/train/model/phrase-table.gz input-factor=0
> output-factor=0 FeatureFunction: TranslationModel0 start: 3 end: 6
> line=LexicalReordering name=LexicalReordering0 num-features=6
> type=wbe-msd-bidirectional-fe-allff input-factor=0 output-factor=0
> path=/home/hieu/working/train/model/reordering-table.wbe-msd-bidirectional-fe.gz
> FeatureFunction: LexicalReordering0 start: 7 end: 12 Initializing
> LexicalReordering.. line=Distortion FeatureFunction: Distortion0 start: 13
> end: 13 line=KENLM lazyken=0 name=LM0 factor=0 
> path=/home/hieu/lm/news-commentary-v8.fr-en.blm.en
> order=3 FeatureFunction: LM0 start: 14 end: 14 Loading UnknownWordPenalty0
> Loading WordPenalty0 Loading PhrasePenalty0 Loading LexicalReordering0
> Loading table into memory...done. Loading Distortion0 Loading LM0 Loading
> TranslationModel0 Start loading text phrase table. Moses format : [85.074]
> seconds Reading /home/hieu/working/train/model/phrase-table.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*
>
> Could you please help me what is the problem here and how can I solve it?
>
> Thank you and Best regards,
> Binh
>
> _______________________________________________
> 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

Reply via email to