Commit a46a546a authored by Arne Koehn's avatar Arne Koehn

added hunpos-incremental tagger

parent bd3697a9
#! /bin/sh
# usage: test [modelname] [inputfile] [outputfile]
abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
WORKDIR=$(dirname $abspath)
cd $WORKDIR
cat $2 | ../hunpos/tagger.native -c incremental $WORKDIR/../hunpos-standard/models/$1 2>tmp-out-$1 | sed 's/\t/ /g'| sed 's/ */ /g' >$3
TAGTIME=$(grep "Tagging: " tmp-out-$1)
SETUPTIME=$(grep "Setup: " tmp-out-$1)
echo SETUPTIME=$(echo $SETUPTIME | sed "s/.* \([0-9:\.]*\).*/\1/")
echo TAGTIME=$(echo $TAGTIME | sed "s/.*real \([0-9:\.]*\).*/\1/")
rm tmp-out-$1
#! /bin/sh
# usage: train [trainfile] [modelname]
# where modelname is the name of this experiment
echo "ERROR hunpos-incremental uses svmt-standard's models. No need for training!"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment