Skip to content

ajm/topic-model

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Client structure

All client files are located in static folder. The folder contains three major app folders:

  • app folder contains the sankey visualization code.
  • statistics folder contains the topic statistics visualization code.
  • tree folder contains the topic tree visualization code.

All these scripts are minified with gulp task scripts to files build.min.js (sankey), statistics.min.js (statistics) and tree.min.js (topic tree).

There's also a less folder containing all the less code which will be compiled to the css folder by gulp task less. The css folder also contains other css-files.

All the templates files are located in the templates folder.

Building

  1. Install Node.js.
  2. Install gulp by running npm install -g gulp.
  3. Install dependencies by running npm install and bower install.
  • To build the minified script files, run gulp scripts.
  • To compile less, run gulp less.

Running

  1. Put data to somewhere you want and set it as the root_path in src/backend/topic.py.
  2. Set distance_constraint in src/backend/graph.py. (For All dataset, it is 0.5, for CS dataset, it is 0.65)
  3. Go to the directory of where you put the code.
  4. Type command virtualenv env.
  5. Type command source env/bin/active. For Windows, run the command env/Scripts/active.bat.
  6. Type command python app.py.
  7. Click the link in the prompt to open the webpage. By default, it is http://127.0.0.1:5000/.

About

topic model by LDA

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 40.1%
  • JavaScript 32.4%
  • CSS 19.4%
  • HTML 4.7%
  • Shell 3.4%