-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.sh
34 lines (23 loc) · 649 Bytes
/
setup.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
## setup up necessary tools
# Download wikiextractor
git clone https://github.com/attardi/wikiextractor.git
# Download and compile tokenizer for French:
git clone https://github.com/mcoavoux/nlp-toolbox.git
cd nlp-toolbox/tokenizer
make clean
make
cd ../..
# Download and compile parser
git clone https://github.com/mcoavoux/mtg.git
cd mtg/mind_the_gap_v1.2/
mkdir bin
cd lib
bash get_dependencies.bash
cd ../src
make clean
make wstring
cd ../../..
cp mtg/mind_the_gap_v1.2/bin/mtg2_parser .
cp -r mtg/mind_the_gap_v1.2/pretrained_models_projective/ml_lex/FRENCH .
# Download and extract stanford tokenizer
sh setup_stanford_tokenizer.sh