-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·21 lines (21 loc) · 832 Bytes
/
install.sh
File metadata and controls
executable file
·21 lines (21 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
echo "Installing dependecies..."
pip install -r requirements.txt
python -c "import nltk; nltk.download('punkt'); nltk.download('rslp'); nltk.download('wordnet')"
cd persistence/nlp/
echo "Downloading Sorl..."
wget -O sorl.tar.xz "https://sourceforge.net/projects/conquest-sqai/files/solr.tar.xz/download"
echo "Extracting Solr..."
tar xf sorl.tar.xz
echo "Downloading NLP model en..."
python -m spacy download en_core_web_md
echo "Downloading NLP model pt-br..."
wget -O model.tar.xz "https://sourceforge.net/projects/conquest-sqai/files/model_pt-br.tar.xz/download"
echo "Extracting model..."
tar xf model.tar.xz
echo "Removing temporary files..."
echo "Removing sorl.tar.xz"
rm -R sorl.tar.xz
echo "Removing model.tar.xz"
rm -R model.tar.xz
echo "Installation completed. Run CONQUEST Trainer with 'python Trainer.py'."