On Saturday 15 of November 2008 22:05:49 [EMAIL PROTECTED] wrote:
> On Sat, Nov 15, 2008 at 20:58:58 +0000, Eric Kow wrote:
> > But for some reason, this doesn't work for me and the SCRIPTS_ROOTDIR
> > is silently set to the empty string. I ended up hard-coding
> > SCRIPTS_ROOTDIR in the mert-moses scripts (and for that matter, in
> > train-factored-phrase-model), but does anybody have a better solution?
>
> Whoops... one other thing I had to do was to tell Perl to set the
> environment variable too:
>
> if (defined($ENV{"SCRIPTS_ROOTDIR"})) {
> $SCRIPTS_ROOTDIR = $ENV{"SCRIPTS_ROOTDIR"};
> } else {
> $ENV{"SCRIPTS_ROOTDIR"} = $SCRIPTS_ROOTDIR;
> }
>
> Which seems to work, although I'd definitely be interested in learning
> the right answer :-)
I had the same issue recently. I've fixed it by defining SCRIPTS_ROOTDIR
variable in the environment before mert-moses.pl script execution.
--
Ing. Radek Bartoň
Faculty of Information Technology
Department of Computer Graphics and Multimedia
Brno University of Technology
E-mail: [EMAIL PROTECTED]
Web: http://blackhex.no-ip.org
Jabber: [EMAIL PROTECTED]
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support