-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
35 lines (29 loc) · 986 Bytes
/
install.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
#!/usr/bin/env bash
python -c "import nltk;nltk.download('framenet_v17')" || exit
cd res || exit
rm -rf lemon
mkdir lemon
cd lemon || exit
wget https://lemon-model.net/lemon# -O lemon.ttl || exit
cd ..
rm -rf skos
mkdir skos
cd skos
wget http://www.w3.org/TR/skos-reference/skos.rdf
cd ..
rm -rf premon
mkdir premon
cd premon || exit
wget https://knowledgestore.fbk.eu/files/premon/dataset/latest/premon-2018a-fn17-noinf.tql.gz || exit
gunzip premon-2018a-fn17-noinf.tql.gz
cd ../..
python -c 'import rdf_utils;g = rdf_utils.load_nquads_file(path_to_nquad_file="res/premon/premon-2018a-fn17-noinf.tql");rdf_utils.convert_nquads_to_nt(g, output_path="res/premon/premon-2018a-fn17-noinf.nt")' || exit
cd res || exit
rm -rf ontolex
mkdir ontolex
cd ontolex || exit
wget http://www.w3.org/ns/lemon/ontolex -O ontolex.rdf || exit
cd ../..
rm -rf LexicalDataD2TAnnotationTool
git clone https://github.com/cltl/LexicalDataD2TAnnotationTool || exit
cd LexicalDataD2TAnnotationTool || exit