Skip to content

Instantly share code, notes, and snippets.

@khuangaf
Created February 2, 2020 07:30
Show Gist options
  • Save khuangaf/6a76cfdde67e80cb83aa748dbc54e016 to your computer and use it in GitHub Desktop.
Save khuangaf/6a76cfdde67e80cb83aa748dbc54e016 to your computer and use it in GitHub Desktop.
# infer the topic distribution of the second corpus.
lda[common_corpus[1]]
'''
output
[(0, 0.014287902),
(1, 0.014287437),
(2, 0.014287902),
(3, 0.014285716),
(4, 0.014285716),
(5, 0.014285714),
(6, 0.014285716),
(7, 0.014285716),
(8, 0.014289378),
(9, 0.87141883)]
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment