Blame bin/tofsa.sh

Packit 7ece30
#!/bin/sh
Packit 7ece30
Packit 7ece30
#grep "/" uk_words.lst | sed -r -f tofsa.sed > uk_words.lst1
Packit 7ece30
Packit 7ece30
adj_tags=(m:v_naz m:v_rod:v_zna m:v_dav m:v_oru m:v_mis f:v_naz f:v_rod f:v_dav:v_mis f:v_zna f:v_oru n:v_naz p:v_naz p:v_rod:v_mis p:v_oru)
Packit 7ece30
Packit 7ece30
echo "" > www.out
Packit 7ece30
for word in `grep "/V$" uk_words.lst | head -n 10`; do
Packit 7ece30
  i=0
Packit 7ece30
  echo "1" > www.tmp
Packit 7ece30
  echo $word >> www.tmp
Packit 7ece30
  word_=${word%%/*}
Packit 7ece30
Packit 7ece30
  echo -n "doing $word_ ..." 
Packit 7ece30
  incls=`unmunch www.tmp ../../dist/myspell-uk-1.6.0/uk_UA.aff 2>> www.err`
Packit 7ece30
  for pos in $incls; do
Packit 7ece30
    echo $pos $word_ "adj:${adj_tags[i]}" >> www.out 
Packit 7ece30
    ((i=i+1))
Packit 7ece30
  done
Packit 7ece30
done