https://github.com/kylase/topicdiff
TopicDiff visualises the difference in topic coverage between 2 content. This project is done for a technical demonstration of building a web application with Python.
https://github.com/kylase/topicdiff
d3 flask gensim lda python3
Last synced: 6 months ago
JSON representation
TopicDiff visualises the difference in topic coverage between 2 content. This project is done for a technical demonstration of building a web application with Python.
- Host: GitHub
- URL: https://github.com/kylase/topicdiff
- Owner: kylase
- License: mit
- Created: 2018-05-20T05:45:23.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-05-01T20:52:05.000Z (over 2 years ago)
- Last Synced: 2025-02-12T19:05:09.588Z (8 months ago)
- Topics: d3, flask, gensim, lda, python3
- Language: Python
- Homepage:
- Size: 17.8 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TopicDiff Visualisation Application

## Instructions
### Windows PowerShell
`$env:FLASK_APP = "run.py"`
For development: `$env:FLASK_ENV = "development"`
### Linux/macOS
`export FLASK_APP="run.py"`
For development: `export FLASK_APP="development"`
## Objective
The main objective of this web application is to visualise how 2 documents are similar in terms of the topics that they cover using a topic model.
## Technical Design
### Topic Model
The topic model is trained with the [Wikipedia's page dumps](https://dumps.wikimedia.org/enwiki/20180520/) using [gensim's LDA implementation](https://radimrehurek.com/gensim/models/ldamodel.html).
### Web Application
The web application is built with Python.
[Flask](http://flask.pocoo.org/) is used as the back-end framework to handle the processing logic and to serve the data.
[jQuery](https://jquery.com/), [d3](https://d3js.org/), [Bootstrap](https://getbootstrap.com/) are used for the front-end design.
## API
Refer to the [Swagger](https://topicdiff.herokuapp.com/api/docs/) for the API reference.