Old fixes
[apertium.git] / apertium-tagger-training-tools-unicode / example / translation-script-es-ca-batch-mode.sh
blob2ccf1476b0897e99efc57d51c7d25bd7f0036ece
1 #!/bin/sh
3 #Change to use the desired data and translation direction
4 DATA=$HOME/apertium/apertium-es-ca-1.0
5 DIRECTION=es-ca
7 FORMAT=txt
8 AUTOMORF=$DATA/$DIRECTION.automorf.bin
9 AUTOBIL=$DATA/$DIRECTION.autobil.bin
10 AUTOGEN=$DATA/$DIRECTION.autogen.bin
11 AUTOPGEN=$DATA/$DIRECTION.autopgen.bin
13 #gawk '{printf $0 "^.<sent>$[]" }' |\
14 apertium-pretransfer |\
15 apertium-transfer $DATA/trules-$DIRECTION.xml $DATA/trules-$DIRECTION.bin $AUTOBIL |\
16 lt-proc -d $AUTOGEN |\
17 lt-proc -p $AUTOPGEN |\
18 apertium-re$FORMAT |\
19 sed -e "s/*\(\\w\+\)/\1/g" |\
20 sed -re "s/( )*[.]$//g"