forked from citiususc/Linguakit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-linguakit.sh
executable file
·50 lines (40 loc) · 1.2 KB
/
install-linguakit.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
for file in linguakit*
do
awk '$0=="MAIN_DIR=\"./Linguakit\""{print "MAIN_DIR=\"'`pwd`'\"";next}\
{print}' $file > $file.tmp;
mv $file.tmp $file;
done
echo 'Path variables modified in tagging scripts.'
chmod 0755 linguakit
chmod 0755 scripts/*
chmod 0755 parsers/*
chmod 0755 tagger/en/*
chmod 0755 tagger/es/*
chmod 0755 tagger/pt/*
chmod 0755 tagger/gl/*
chmod 0755 sentiment/en/*
chmod 0755 sentiment/es/*
chmod 0755 sentiment/pt/*
chmod 0755 sentiment/gl/*
chmod 0755 sentiment/*.perl
chmod 0755 kwic/*
chmod 0755 keywords/*.perl
chmod 0755 mwe/*.perl
chmod 0755 triples/*.perl
echo "Permissions of execution, done!"
echo "Compiling lexicons"
echo "english lexicon"
./tagger/en/store_lex.perl
echo "portuguese lexicon"
./tagger/pt/store_lex.perl
echo "spanish lexicon"
./tagger/es/store_lex.perl
echo "galician lexicon"
./tagger/gl/store_lex.perl
./tagger/gl/store_split.perl
echo "Warning: if the lexicon compilation has returned error messages, please check whether the Perl module 'Storable' is installed."
echo "To install this Perl module, you may use CPAN:"
echo " cpan> install Storable"
echo ''
echo "Installation done! You can run now `./linguakit` to see basic usage."