all:	gatherdata meteor
gatherdata:
	cat ../apertium_slsr_automatic_lemma_POS_automaticrulecreation_with_postprocessrules/bleu_src |sed -e "s/SEG><SEG>/SEG>\n<SEG>/g" | tr '[:upper:]' '[:lower:]'|tr "č" "cx"|tr "ć" "cy"|tr "š" "sx"|tr "ž" "zx"|tr "đ" "dy" |tr "Ž" "zx" |tr "Š" "sx" |tr "Č" "cx" |tr "Ć" "cy"|tr "Đ" "dy"> src
	cat ../apertium_slsr_automatic_lemma_POS_automaticrulecreation_with_postprocessrules/bleu_ref |sed -e "s/SEG><SEG>/SEG>\n<SEG>/g" | tr '[:upper:]' '[:lower:]'|tr "č" "cx"|tr "ć" "cy"|tr "š" "sx"|tr "ž" "zx"|tr "đ" "dy" |tr "Ž" "zx" |tr "Š" "sx" |tr "Č" "cx" |tr "Ć" "cy"|tr "Đ" "dy"> ref
	cat ../apertium_slsr_automatic_lemma_POS_automaticrulecreation_with_postprocessrules/bleu_tst |sed -e "s/SEG><SEG>/SEG>\n<SEG>/g" | tr '[:upper:]' '[:lower:]'|tr "č" "cx"|tr "ć" "cy"|tr "š" "sx"|tr "ž" "zx"|tr "đ" "dy" |tr "Ž" "zx" |tr "Š" "sx" |tr "Č" "cx" |tr "Ć" "cy"|tr "Đ" "dy"> tst
meteor:
	perl meteor.pl -s 12 -t tst -r ref >qqq
	cat qqq|tail -n 14 > slsr_METEOR_result
