Skip to content

Commit

Permalink
Convert ensembla LDA to LDA.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrobe committed Feb 12, 2024
1 parent 13634da commit b9ec0cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions litstudy/nlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ def train_elda_model(
else:
model = EnsembleLda.load(filename)

model = model.generate_gensim_representation()

doc2topic = corpus2dense(model[freqs], num_topics).T
topic2token = model.get_topics()

Expand Down

0 comments on commit b9ec0cb

Please sign in to comment.