Commit 4378b727 authored by Arne Köhn's avatar Arne Köhn

Added svmt-standard/tag, tmp-out doesn't conflict anymore when running multiple processes

parent 735c343b
#! /bin/sh
# usage: test [modelname] [inputfile] [outputfile]
WORKDIR=$(pwd)/$(dirname $0)
cd $WORKDIR
. ../svmt-config
$SVMTOOLDIR/SVMTagger $WORKDIR/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
......@@ -5,7 +5,7 @@
WORKDIR=$(pwd)/$(dirname $0)
cd $WORKDIR
# with this you get $SVMDIR
# with this you get $SVMDIR and $SVMTOOLDIR
. ../svmt-config
if [ ! -d tmpfiles ]
......@@ -27,5 +27,5 @@ do M0 LRL
EOF
cd models
s
$SVMTOOLDIR/SVMTlearn -V 1 $WORKDIR/tmpfiles/config-$2.tmp
\ No newline at end of file
$SVMTOOLDIR/SVMTlearn -V 1 $WORKDIR/tmpfiles/config-$2.tmp
......@@ -3,9 +3,9 @@
WORKDIR=$(pwd)/$(dirname $0)
cd $WORKDIR
../tnt/tnt $WORKDIR/models/$1 $2 2>tmp-out | grep -v "^%% " | sed "s/\t/ /g"| sed "s/ */ /g" >$3
TAGTIME=$(grep "Tagging: " tmp-out)
SETUPTIME=$(grep "Setup: " tmp-out)
../tnt/tnt $WORKDIR/models/$1 $2 2>tmp-out-$1 | grep -v "^%% " | 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
\ No newline at end of file
rm tmp-out-$1
\ No newline at end of file
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