Hi Panos. I have never seen this specific error.
That being said, in Ubuntu /bin/sh is a symlink to /bin/dash, which does not happen to work well with the moses scripts. You can do two things which, I guess, will help you out: 1.- edit "training/cmert-0.5/enhanced-mert" and exchange "/bin/sh" by "/bin/bash" 2.- exchange the symlink "/bin/sh", which points to "/bin/dash", by one that points to "/bin/bash" The advantage of option 1 is that you do not need to change your system. Advantage of option 2 is that no other moses script will return that kind of error again. Good luck :) Germán Sanchis Quoting Panos <[EMAIL PROTECTED]>: > Hello, > > I have a problem when I run the tuning process and I can't figure out what's > going on: > ******** > Hoping that scoring succeeded. We'll see if we can read the output files > now. > 17104 accumulated translations > prev accumulated translations was : -1 > Executing: \cp -f init.opt run1.init.opt > Starting cmert. > Executing: /usr/share/moses/scripts/training/cmert-0.5//enhanced-mert -d 14 > 2> cmert.log > Exit code: 2 > Failed to run cmert at /usr/bin/mert-moses.pl line 682. > ******** > > cmert.log contains this: > > ******** > [: 39: ==: unexpected operator > [: 45: ==: unexpected operator > [: 62: ==: unexpected operator > /usr/share/moses/scripts/training/cmert-0.5//enhanced-mert: 62: > arrayname[1]=d: not found > /usr/share/moses/scripts/training/cmert-0.5//enhanced-mert: 62: > arrayname2[1]=d_1: not found > /usr/share/moses/scripts/training/cmert-0.5//enhanced-mert: 62: arith: > syntax error: " lastj + 1 " > ******** > > The small amount of accumulated translations is due to the tiny input and > reference files I use (100 or 200 sentences) while trying to get the tuning > process right. > > The system I use is Ubuntu Server 7.10 64bit. > > Any help would be greatly appreciated. > > Panos > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
