Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 days 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 6 years ago)
- Default Branch: main
- Last Pushed: 2023-02-19T02:41:17.000Z (over 1 year ago)
- Last Synced: 2023-03-29T06:11:59.192Z (over 1 year ago)
- Topics: d3, flask, gensim, lda, python3
- Language: Python
- Homepage:
- Size: 17.8 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TopicDiff Visualisation Application
![Test and Deploy on Heroku](https://github.com/kylase/topicdiff/actions/workflows/test-and-deploy.yml/badge.svg)
## 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.