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 :-)
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
signature.asc
Description: Digital signature
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
