This shows you the differences between two versions of the page.

Link to this comparison view

nlp:getting-started-with-the-topical-guide [2015/04/23 14:32] (current)
ryancha created
Line 1: Line 1:
 +The following commands are intended for an Ubuntu Linux system and may need to be adjusted for your individual setup.
 +; Get basic packages
 +:<​code>​sudo apt-get install default-jdk ant git libyaml-dev</​code>​
 +Now, get Django set up. There are three ways to do this:
 +; 1) Just use apt-get
 +: <​code>​sudo apt-get install python-django python-scipy python-numpy python-matplotlib</​code>​
 +; 2) Use pip
 +:<​code>​sudo apt-get install python-pip python-dev libblas-dev liblapack-dev
 +:sudo pip install django scipy numpy matplotlib</​code>​
 +;3) Use pip to install packages in a virtual environment (good for servers running multiple apps)
 +:<​code>​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</​code>​
 +Note that any time you want to execute code in the virtualenv, you need to run <​code>​source ./​bin/​activate</​code>​ first.
 +The third method seems to work more reliably across platforms.
 +; Grab the Topical Guide code and switch to the <​code>​dev</​code>​ branch
 +: <​code>​git clone https://​github.com/​BYU-NLP-Lab/​topicalguide.git
 +: cd topicalguide
 +: git fetch origin dev:dev
 +: git checkout dev</​code>​
 +; To use MySQL instead of default SQLite3 (recommended if you're deploying to the Web)
 +: In <​code>​topic_modeling/​settings.py</​code>​ change <​code>​DBTYPE='​sqlite3'</​code>​ to <​code>​DBTYPE='​mysql'</​code>​.
 +; Import the default dataset
 +: <​code>​./​run_import.py</​code>​
 +; Run the development server
 +: <​code>​./​run_server.sh</​code>​
 +Point your browser to the address printed by <​code>​run_server.sh</​code>​ and you should be able to browser the Topical Guide.
nlp/getting-started-with-the-topical-guide.txt ยท Last modified: 2015/04/23 14: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