Hi,
Might be two reasons:

1) are you running this on a 32-bit machine or Cygwin? Then the maximum size phrase table that can be built is about 3GB, which can be hit quite quickly. 2) do you have only little free space in your /tmp directory? You can change the directory used for temporary files with the "-T path" option.

Best,
Marcin

W dniu 27.08.2013 17:48, João Graça pisze:
Hello,

I am trying to create a compact version of the phrase table based on the pre-trained models of release 1.

I get the following error when I run the processPhraseTableMin on a ubuntu Vagrant machine.

Thanks for your help,

João

vagrant@precise64:/vagrant/mt-models/en-es$ ~/mosesdecoder/bin/processPhraseTableMin -in phrase-table.1.gz -out phrase-table -nscores 5 -threads 2
Used options:
Text phrase table will be read from: phrase-table.1.gz
Output phrase table will be written to: phrase-table.minphr
Step size for source landmark phrases: 2^10=1024
Source phrase fingerprint size: 16 bits / P(fp)=1.52588e-05
Selected target phrase encoding: Huffman + PREnc
Maxiumum allowed rank for PREnc: 100
Number of score components in phrase table: 5
Single Huffman code set for score components: no
Using score quantization: no
Explicitly included alignment information: yes
Running with 2 threads

Pass 1/3: Creating hash function for rank assignment
..................................................[5000000]
..................................................[10000000]
..................................................[15000000]
..................................................[20000000]
..................................................[25000000]
..................................................[30000000]
..................................................[35000000]
..................................................[40000000]
..................................................[45000000]
..................................................[50000000]
..................................................[55000000]
......terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted



_______________________________________________
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