Visualizations for LDA models from (mat-analyzer)[https://github.com/lvtffuk/mat-analyzer].
- Python 3
gccandg++libraries
git clone git@github.com:lvtffuk/mat-lda-model-analyzer.git
cd mat-lda-model-analyzer
pip install -r requirements.txt
python ./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. |
✔️ |
The input directory should contain 4 files with the LDA model and the corpus file.
lda.modellda.model.expElogbeta.npylda.model.id2wordlda.model.state
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:latestdocker 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)."
