mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +03:00
better explanation in README, fixed test preparation in tests/train-factored-test-step3.test
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@727 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
f0a5eb167e
commit
0241f2fc5f
@ -1,4 +1,28 @@
|
||||
==== Running the tests:
|
||||
|
||||
All *.test files here are run by ../Makefile.
|
||||
The tests should assume, that they are launched in a fresh directory:
|
||||
Please do not run them from here, as they should depend some variables set by the ../Makefile
|
||||
|
||||
To run all tests, issue:
|
||||
make tests
|
||||
!! in the scripts directory
|
||||
|
||||
Ro tun a single test, issue:
|
||||
make tests/TESTNAME.test.run
|
||||
!! in the scripts directory
|
||||
|
||||
Example:
|
||||
make tests/train-factored-test-step3.test.run
|
||||
|
||||
|
||||
|
||||
==== Building new tests
|
||||
|
||||
Each of the test should assume that it is launched in a fresh directory:
|
||||
|
||||
tests/TESTNAME.test.TIMESTAMP/
|
||||
|
||||
The test should prepare any files needed and then should test what there is to test.
|
||||
|
||||
The best way is to make a copy of an older test, rename, modify and add to the CVS.
|
||||
|
||||
|
@ -18,4 +18,7 @@ cp $DATADIR/dev.ref ./ || exit 1
|
||||
|
||||
echo "Starting mert-moses"
|
||||
|
||||
$SCRIPTS_ROOTDIR/training/mert-moses.pl --jobs=10 dev.input dev.ref $MOSESCMD ./moses.ini
|
||||
$SCRIPTS_ROOTDIR/training/mert-moses.pl --jobs=10 dev.input dev.ref $MOSESCMD ./moses.ini \
|
||||
|| exit 1
|
||||
|
||||
echo "Success"
|
||||
|
@ -14,4 +14,7 @@ cp $DATADIR/dev.ref ./ || exit 1
|
||||
|
||||
echo "Starting mert-moses"
|
||||
|
||||
$SCRIPTS_ROOTDIR/training/mert-moses.pl dev.input dev.ref $MOSESCMD ./moses.ini
|
||||
$SCRIPTS_ROOTDIR/training/mert-moses.pl dev.input dev.ref $MOSESCMD ./moses.ini \
|
||||
|| exit 1
|
||||
|
||||
echo "Success"
|
||||
|
@ -5,6 +5,9 @@ echo "Workspace: $WORKSPACE"
|
||||
|
||||
export SCRIPTS_ROOTDIR=$WORKSPACE/scripts
|
||||
|
||||
cp -r ../epps-sample ./corpus || exit 1
|
||||
echo "Copied epps-sample files"
|
||||
|
||||
echo "Starting training script."
|
||||
|
||||
$SCRIPTS_ROOTDIR/training/train-factored-phrase-model.perl \
|
||||
@ -14,5 +17,7 @@ $SCRIPTS_ROOTDIR/training/train-factored-phrase-model.perl \
|
||||
--first-step 3 \
|
||||
--last-step 3 \
|
||||
--corpus corpus \
|
||||
--root corpus
|
||||
--root corpus \
|
||||
|| exit 1
|
||||
|
||||
echo "Success."
|
||||
|
@ -20,4 +20,7 @@ $SCRIPTS_ROOTDIR/training/train-factored-phrase-model.perl \
|
||||
--decoding-steps t0,g0,t1,g1,g2 \
|
||||
--translation-factors 0-0+1-1 \
|
||||
--generation-factors 0-0+0-1+0,1-2 \
|
||||
--first-step 9
|
||||
--first-step 9 \
|
||||
|| exit 1
|
||||
|
||||
echo "Success"
|
||||
|
Loading…
Reference in New Issue
Block a user