Skip to content

Latest commit

 

History

History
75 lines (49 loc) · 1.19 KB

setup-urika.md

File metadata and controls

75 lines (49 loc) · 1.19 KB

Set up Urika environment

Get source code repository

Run:

git clone https://github.com/alan-turing-institute/defoe.git

This will clone the source code repository into a defoe directory.


Set up Python environment

Create urika-py27 environment:

module load anaconda3/4.1.1
conda create -n urika-py27 python=2.7 anaconda

Proceed ([y]/n)? y

Activate environment:

source activate urika-py27

Show active environment:

conda env list
...
urika-py27            *  /home/users/<your-urika-username>/.conda/envs/urika-py27
...

Install dependencies

cd defoe
conda install -c anaconda --file requirements.txt

Install NLTK data

Certain queries require the NLTK corpora data to be installed.

bash scripts/download_ntlk_corpus.sh

This is installed to <HOME>/nltk_data

Caution: the NLTK data requires ~3GB of space.

For more information, see Installing NLTK Data


Subsequent Urika sessions

After creating the py27 environment, for your subsequent Urika sessions you just need to type:

module load anaconda3/4.1.1
source activate urika-py27