Commit 735c343b authored by Arne Köhn's avatar Arne Köhn

added the viterbi version of the svmt-standard tagger.

This tagger adds -T 5 -S GLRL to the command line options.
It relies on the models of svmt-standard, so this one has to be trained
before svmt-standard-viterbi can tag.
parent c8a6a072
#! /bin/sh
# usage: test [modelname] [inputfile] [outputfile]
WORKDIR=$(pwd)/$(dirname $0)
. ../svmt-config
$SVMTOOLDIR/SVMTagger -T 5 -S GLRL $WORKDIR/../svmt-standard/models/$1 <$2 2>tmp-out-$1 >$3
SETUPTIME=$(grep "START-UP: " tmp-out-$1)
TAGTIME=$(grep "TAGGING: " tmp-out-$1)
echo SETUPTIME=$(echo $SETUPTIME | sed "s/.* START-UP: \([0-9\.]*\).*/\1/")
echo TAGTIME=$(echo $TAGTIME | sed "s/.* TAGGING: \([0-9\.]*\).*/\1/")
rm tmp-out-$1
#! /bin/sh
# usage: train [trainfile] [modelname]
# where modelname is the name of this experiment
echo "ERROR svmt-standard-viterbi 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