train-factored-test-step9.test.svn-base

来自「moses开源的机器翻译系统」· SVN-BASE 代码 · 共 38 行

SVN-BASE
38
字号
#!/bin/bash# $Id$function die() {  echo "$@"  exit 1}[ -d $WORKSPACE ] || die "Failed to find workspace: $WORKSPACE"echo "Workspace: $WORKSPACE"bindir=$WORKSPACE/bin[ -d $bindir ] || die "Please create $WORKSPACE/bin and put GIZA++ and such there"export SCRIPTS_ROOTDIR=$WORKSPACE/scriptsecho "fake" > lm0.3grecho "fake" > lm0.4grmkdir model || die "Can't create blank model"echo "Starting training script."$SCRIPTS_ROOTDIR/training/train-factored-phrase-model.perl \  --bin-dir $bindir \  --f src --e tgt \  --lm 0:3:lm0.3gr \  --lm 0:4:lm0.4gr \  --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 \  || die "Creation of moses.ini failed"echo "Success"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?