#!/bin/bash
# Nikhilesh Sharma
#***************************************************************#
file=$1
model=$2
flag=$3
flagVGI=$4
flagAfterVGI=$5
path=$6
stemmer=$7
morphological=$8
tags=$9

java -classpath //home/mtech/System/CPOST/bin:/home/mtech/System/CPOST/lib/colt.jar:/home/mtech/System/CPOST/lib/LBFGS.jar:/home/mtech/System/CPOST/lib/trove.jar:/home/mtech/System/CPOST/lib/UGM.jar iitb.cfilt.cpost.crfpp.FileFormer /home/mtech/System/HindiLinguisticResources/hindiConfig $file ${file}_new $flag $flagVGI $stemmer $morphological $tags > ${path}/error

if [ $tags == "true" ]
then


/home/mtech/System/CRF++-0.50/crf_test -m $model ${file}_new > ${file}_output 

java -classpath /home/mtech/System/CPOST/bin:/home/mtech/System/CPOST/lib/colt.jar:/home/mtech/System/CPOST/lib/LBFGS.jar:/home/mtech/System/CPOST/lib/trove.jar:/home/mtech/System/CPOST/lib/UGM.jar iitb.cfilt.cpost.crfpp.Tester /home/mtech/System/HindiLinguisticResources/hindiConfig ${file}_output ${file}_result ${file}_final $flagAfterVGI > ${file}_accuracyReport

fi

