PREFIX=/home/moses/projekti/projekti/eval
all:	apertium moses
apertium:	enes_apertium_fast_eamt11 enes_apertium_fast_eamt11_double enes_apertium_fast_2000 enes_apertium_fast_20000 enes_apertium_fast_200000 enes_apertium_fast_2000000
moses:		enes_moses_fast_eamt11 enes_moses_fast_eamt11_double enes_moses_fast_200 enes_moses_fast_2000 enes_moses_fast_20000 enes_moses_fast_200000
enes_moses_fast_eamt11:
	echo "EN ES translate moses eamt11 start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_moses "eamt11_sources" "$(PREFIX)/MOSES/mosesdecoder/bin/moses -f $(PREFIX)/working/binarised-model/moses.ini"
	echo "EN ES translate moses eamt11 end" >> outout_single_fast
enes_moses_fast_eamt11_double:
	echo "EN ES translate moses eamt11 DOUBLE start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_moses "eamt11_sources_double" "$(PREFIX)/MOSES/mosesdecoder/bin/moses -f $(PREFIX)/working/binarised-model/moses.ini"
	echo "EN ES translate moses eamt11 DOUBLE end" >> outout_single_fast
enes_moses_fast_200:
	echo "EN ES translate moses 200 start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_moses "10Sentence200Words" "$(PREFIX)/MOSES/mosesdecoder/bin/moses -f $(PREFIX)/working/binarised-model/moses.ini"
	echo "EN ES translate moses 200 end" >> outout_single_fast
enes_moses_fast_2000:
	echo "EN ES translate moses 2000 start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_moses "100Sentence2000Words" "$(PREFIX)/MOSES/mosesdecoder/bin/moses -f $(PREFIX)/working/binarised-model/moses.ini"
	echo "EN ES translate moses 2000 end" >> outout_single_fast
enes_moses_fast_20000:
	echo "EN ES translate moses 20000 start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_moses "1000Sentence20000Words" "$(PREFIX)/MOSES/mosesdecoder/bin/moses -f $(PREFIX)/working/binarised-model/moses.ini"
	echo "EN ES translate moses 20000 end" >> outout_single_fast
enes_moses_fast_200000:
	echo "EN ES translate moses 200000 start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_moses "10000Sentence200000Words" "$(PREFIX)/MOSES/mosesdecoder/bin/moses -f $(PREFIX)/working/binarised-model/moses.ini"
	echo "EN ES translate moses 200000 end" >> outout_single_fast
enes_apertium_fast_eamt11:
	echo "EN ES translate apertium eamt11 start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_apertium "eamt11_sources" "apertium -f txt en-es"
	echo "EN ES translate apertium fast eamt11 end" >> outout_single_fast
enes_apertium_fast_eamt11_double:
	echo "EN ES translate apertium eamt11 DOUBLE start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_apertium "eamt11_sources_double" "apertium -f txt en-es"
	echo "EN ES translate apertium fast eamt11 DOUBLE end" >> outout_single_fast
enes_apertium_fast_2000:
	echo "EN ES translate apertium 2000 start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_apertium "100Sentence2000Words" "apertium -f txt en-es"
	echo "EN ES translate apertium 2000 end" >> outout_single_fast
enes_apertium_fast_20000:
	echo "EN ES translate apertium 20000 start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_apertium "1000Sentence20000Words" "apertium -f txt en-es"
	echo "EN ES translate apertium 20000 end" >> outout_single_fast
enes_apertium_fast_200000:
	echo "EN ES translate apertium 200000 start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_apertium "10000Sentence200000Words" "apertium -f txt en-es"
	echo "EN ES translate apertium 200000 end" >> outout_single_fast
enes_apertium_fast_2000000:
	echo "EN ES translate apertium 2000000 start" >> outout_single_fast
	/usr/bin/time --output outout_single_fast --append --portability ./eval_apertium "100000Sentence2000000Words" "apertium -f txt en-es"
	echo "EN ES translate apertium 2000000 end" >> outout_single_fast
start_server:
	$(PREFIX)/MOSES/mosesdecoder/bin/mosesserver -f $(PREFIX)/working/binarised-model/moses.ini
client20:
	echo "EN ES translate SERVER 20 start" >> izpis_server
	date >> izpis_server
	cat oneSentence20Words|$(PREFIX)/MOSES/mosesdecoder/contrib/server/client.perl
	date >> izpis_server
	echo "EN ES translate SERVER 20 end" >> izpis_server
client20000:
	echo "EN ES translate SERVER 20000 start" >> izpis_server
	date >> izpis_server
	cat 1000Sentence20000Words|$(PREFIX)/MOSES/mosesdecoder/contrib/server/client.perl
	date >> izpis_server
	echo "EN ES translate SERVER 20000 end" >> izpis_server
client200000:
	echo "EN ES translate SERVER 2000000 start" >> izpis_server
	date >> izpis_server
	cat 10000Sentence200000Words|$(PREFIX)/MOSES/mosesdecoder/contrib/server/client.perl
	date >> izpis_server
	echo "EN ES translate SERVER 200000 end" >> izpis_server
start_clent_all:	client20 client20000 client200000
