Commit c5cf16ee authored by Neeme Kahusk's avatar Neeme Kahusk
Browse files

totrans.sh

parent 926390a7
#!/bin/bash
# usage: vistnoun.sh <start> <pos>
# ulimit will come from data file
# $1 => start
# $2 => POS
i=$1
finpath=$HOME/Wordnet/FinWN/fiwn-2.0/dict
pwnpath=$HOME/Wordnet/WordNet-3.0/dict/
ulimitfin=$[$(cat $finpath/data.$2|egrep -v '^ '|wc -l)-1]
echo $ulimitfin
ulimitpwn=$[$(cat $pwnpath/data.$2|egrep -v '^ '|wc -l)-1]
echo $ulimitpwn
ulimit=$ulimitpwn
while [ $i -lt $ulimit ]
do
j=$[$i+200]
if [ $j -ge $ulimit ]
then j=$[$ulimit+1]
fi
echo $i $j
python trans.py -p $2 -r $prefix -s $i -e $j
i=$[$i+200]
done
Supports Markdown
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