tag 352 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#! /bin/sh
# usage: tag [modelname] [inputfile] [outputfile]

abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"

WORKDIR=$(dirname $abspath)
cd $WORKDIR
./deutsch-tagger.pl -q -t "../tnt/tnt -v0 -z200 $WORKDIR/../tnt-standard/models/$1 " < $2 | grep -v "^%% " | sed 's/\([^\t ]*[\t ]*[^\t ]*\).*/\1/'| sed "s/\t/ /g"| sed "s/  */ /g" >$3