CS 411 Final Project Version 1.1.0
- Neo4JQueries: Class for the Neo4J queries and Neo4J driver.
- SQLQueries: Class for the SQL queries and SQL driver.
- TopicModel: Library for pre-processing and extracting relevant topics from text. Can also be used to train topic model new corpus.
- app: Flask application with templates and views.
- scripts: Scripts used to load data into the databases and perform other miscellaneous tasks.
config.py
: Configuration file used by the server to access the database of your choice. If you want to use a SQL database use:If you want to use Neo4J database use:DB_TYPE="sql" AUTH_FILE="config.yml"
DB_TYPE="neo" AUTH_FILE="config_neo.yml"
requirements.txt
: Required python libraries for running the serverrun.py
: Script to run the server. However we suggest another way to run it, See Below.
-
You first need to have a
config.yml
orconfig_nep.yml
if you want to use a SQL/ Neo4J database respectively. The files must have the following format:user: password: host: database:
-
Make sure you have the model files for using the Gensim topic model. They should be present in the folder and provided to the
TopicExtractor
class inviews.py
-
Run the command
flask run -host=0.0.0.0
in the repository to start the server.