-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexec.sh
executable file
·32 lines (29 loc) · 978 Bytes
/
exec.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
prefix="OUTPUT"
while getopts f:v: option
do
case $option in
f)
folder=$OPTARG
;;
esac
done
for f in $(find $folder -iname "*.txt");
do
a=${f##*/}
a=${a%.txt}
mkdir $prefix/$a
./segmenteur.pl $f $prefix/$a/$a.seg
./filtrage.pl $prefix/$a/$a.seg $prefix/$a/$a.fil
echo "Quelle est la langue du document $a.txt ? (eng, esp ou fra)"
read langue
./fonctionnel.pl $prefix/$a/$a.fil $prefix/$a/$a.fon $langue
echo "Quel stemmer voulez vous utiliser ? (1 pour l'ultra-stemming / 2 pour Porter)"
read stemmer
./normalise.pl $prefix/$a/$a.fon $prefix/$a/$a.stem $langue $stemmer
./vectoriel.pl $prefix/$a/$a.stem $prefix/$a/matrice_$a.mat
./resumeur.pl $prefix/$a/matrice_$a.mat $prefix/$a/score_$a.phr
echo "Quel taux de compression voulez vous ? (entre 0 et 100%)"
read taux
./generate.pl $prefix/$a/$a.seg $prefix/$a/score_$a.phr $prefix/$a/resume_$a.txt $taux
done