#!/bin/bash
# Nikhilesh Sharma
#***************************************************************#
base="/home/damani/Desktop/post/System"
train_file=$base/HindiLinguisticResources/$1
template_file=$base/HindiLinguisticResources/$2
flag=$3
flagVGI=$4
flagUseMorphFeatures=$5
model_file=${train_file}_${flag}_${flagVGI}_${flagUseMorphFeatures}.model

java -classpath $base/CPOST/bin:$base/CPOST/lib/colt.jar:$base/CPOST/lib/LBFGS.jar:$base/CPOST/lib/trove.jar:$base/CPOST/lib/UGM.jar iitb.cfilt.cpost.crfpp.DMFileFormer $base/HindiLinguisticResources/hindiConfig $train_file ${train_file}_newtrain $flag $flagVGI true $flagUseMorphFeatures > ${1}_error1

#rm ${train_file}_accuracyReport

$base/CRF++-0.50/crf_learn $template_file ${train_file}_newtrain $model_file > ${1}_error2

