#! /bin/sh

bin=$IRSTLM/bin

testdir=$1
cd $testdir

inputfile=input
outputfile=output

$bin/plsa.sh -c input -d dict -m model -n 30 -u $outputfile -i 10 > /dev/null 2>&1 
cat $outputfile | perl -pe 's/[\t ]+/\n/g;'

rm $outputfile 
