The following commands are intended for an Ubuntu Linux system and may need to be adjusted for your individual setup.

; Get basic packages :

sudo apt-get install default-jdk ant git libyaml-dev

Now, get Django set up. There are three ways to do this: ; 1) Just use apt-get :

sudo apt-get install python-django python-scipy python-numpy python-matplotlib

; 2) Use pip :

sudo apt-get install python-pip python-dev libblas-dev liblapack-dev
:sudo pip install django scipy numpy matplotlib

;3) Use pip to install packages in a virtual environment (good for servers running multiple apps) :

sudo apt-get install python-pip python-dev libblas-dev liblapack-dev
:sudo pip install virtualenv
:mkdir ~/envs
:virtualenv ~/envs/tgenv --no-site-packages
:cd ~/envs/tgenv
:source ./bin/activate
:pip install django
:pip install numpy
:pip install scipy
:pip install matplotlib
:pip install nltk

Note that any time you want to execute code in the virtualenv, you need to run

source ./bin/activate

first.

The third method seems to work more reliably across platforms.

; Grab the Topical Guide code and switch to the

dev

branch :

git clone https://github.com/BYU-NLP-Lab/topicalguide.git
: cd topicalguide
: git fetch origin dev:dev
: git checkout dev

; To use MySQL instead of default SQLite3 (recommended if you're deploying to the Web) : In

topic_modeling/settings.py

change

DBTYPE='sqlite3'

to

DBTYPE='mysql'

.

; Import the default dataset :

./run_import.py

; Run the development server :

./run_server.sh

Point your browser to the address printed by

run_server.sh

and you should be able to browser the Topical Guide.

nlp/getting-started-with-the-topical-guide.txt · Last modified: 2015/04/23 20:32 by ryancha
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0