302
by richard
Script to run the stemmers to generate the output files from the |
1 |
#!/bin/sh
|
2 |
||
3 |
# This script runs the stemmer for each language for which a sample vocabulary
|
|
4 |
# is found, generating the diffs file for that langauge.
|
|
5 |
||
6 |
STEMWORDS='../snowball/stemwords' |
|
7 |
||
8 |
if [ ! -x $STEMWORDS ] |
|
9 |
then
|
|
10 |
echo "Can't find \"stemwords\" executable." |
|
11 |
exit 1 |
|
12 |
fi
|
|
13 |
||
14 |
cd ../data
|
|
15 |
datalangs=`find * -type d -maxdepth 0 -not -name .svn` |
|
16 |
||
17 |
for lang in $datalangs |
|
18 |
do
|
|
19 |
echo "Checking $lang..." |
|
20 |
$STEMWORDS -l $lang -i ../data/$lang/voc.txt -o ../data/$lang/output.txt |
|
21 |
done
|