Welcome to mirror list, hosted at ThFree Co, Russian Federation.

train-factored-test-step9.test « tests « scripts - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 96e9ba5045d557d2b130838826c95891741feedc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/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/scripts


echo "fake" > lm0.3gr
echo "fake" > lm0.4gr

mkdir 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"