Skip to content

Web application for dynamic topic modelling on classical texts in the "Computing antiquity" project

License

Notifications You must be signed in to change notification settings

ankyloHryax/classic-topic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Topiquity

Code style: black MIT license Docker made-with-python

Web application for dynamic topic modelling on classical texts in the "Computing antiquity" project.

Screenshot

Setup

In order for the application to run properly you will need a dat/cleaned_corpus.csv in the working directory.
This file has to contain a table with one column being id_nummer containing the IDs of the texts, the other being text containing a whitespace-separated cleaned texts.

Debugging

For debugging purposes (or if you're just lazy to mess with docker) you may run the app by installing dependencies:

pip install -r requirements.txt

Then run the main script in the following fashion:

cd src && python3 main.py

The server will listen at localhost:8080, you are free to open it up in your browser.

Deployment

Both a Dockerfile and a docker compose default configuration is included in the repository, these might aid you in deploying the application to a webserver of some sorts, or just run the app on your computer in an isolated environment. It's easiest to get started by running the app in docker compose:

docker compose up

This will spin up a container and attach to localhost:7011

Known limitations

  • DMM and LSI don't work particularly well, sometimes not at all, you should use LDA or NMF as things stand right now. A project-agnostic topic investigation platform might be developed in the near future.
  • The code is heavily project-specific, if you want to use the application with a different corpus you will have to dig deep into the code.

About

Web application for dynamic topic modelling on classical texts in the "Computing antiquity" project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.0%
  • Other 1.0%