Skip to content

lvtffuk/mat-lda-model-analyzer

Repository files navigation

mat-lda-model-analyzer

Visualizations for LDA models from (mat-analyzer)[https://github.com/lvtffuk/mat-analyzer].

Development

Requirements

  • Python 3
  • gcc and g++ libraries

Installation & test run

git clone git@github.com:lvtffuk/mat-lda-model-analyzer.git
cd mat-lda-model-analyzer
pip install -r requirements.txt
python ./

Settings

The settings are set with environment variables.

Variable Description Required Default value
MODEL_INPUT_FILE_PATH The filepath of the LDA model. ✔️
CORPUS_FILE_PATH The filepath of the json file with corpus data. ✔️

Input

The input directory should contain 4 files with the LDA model and the corpus file.

  • lda.model
  • lda.model.expElogbeta.npy
  • lda.model.id2word
  • lda.model.state

Docker

The image is stored in GitHub packages registry and the app can be run in the docker environment.

docker pull ghcr.io/lvtffuk/mat-lda-model-analyzer:latest
docker run \
-p 8080:8080 \
-d \
--restart=unless-stopped \
--name=mat-lda-model-analyzer \
-v '/absolute/path/to/input/dir:/usr/src/app/input' \
ghcr.io/lvtffuk/mat-lda-model-analyzer:latest  

The app will be accessible on http://localhost:8080.

This work was supported by the European Regional Development Fund-Project “Creativity and Adaptability as Conditions of the Success of Europe in an Interrelated World” (No. CZ.02.1.01/0.0/0.0/16_019/0000734)." Logo

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published