Skip to content

Instantly share code, notes, and snippets.

@shriphani
Created March 10, 2019 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shriphani/0bf85de1386057e44371e66dfdd38dc9 to your computer and use it in GitHub Desktop.
Save shriphani/0bf85de1386057e44371e66dfdd38dc9 to your computer and use it in GitHub Desktop.
In [1]: from gensim.models import LdaModel, LdaMulticore
In [2]: lda = LdaModel.load('parkaland_gab_lda_20.model')
In [3]: lda.show_topics()
Out[3]:
[(19,
'0.022*"billboard" + 0.016*"louisville" + 0.014*"williams" + 0.014*"brian" + 0.011*"linux" + 0.009*"message" + 0.009*"kill" + 0.009*"appears" + 0.008*"reads" + 0.007*"steam"'),
(18,
'0.391*"#" + 0.022*"URL" + 0.013*"2a" + 0.013*"maga" + 0.010*"qanon" + 0.006*"&" + 0.006*"guncontrol" + 0.006*"twitter" + 0.005*"gabfam" + 0.005*"🇸"'),
(17,
'0.051*"youtube" + 0.041*"," + 0.037*""" + 0.019*"URL" + 0.018*"." + 0.017*"nasim" + 0.017*"shooter" + 0.017*"aghdam" + 0.016*"..." + 0.013*":"'),
(16,
'0.045*"antifa" + 0.035*"islamic" + 0.023*"leader" + 0.022*"hate" + 0.019*"cair" + 0.018*"graphic" + 0.017*"nationalist" + 0.017*"links" + 0.013*"white" + 0.012*"opening"'),
(15,
'0.045*"body" + 0.025*"bag" + 0.020*"truck" + 0.015*"heavy" + 0.014*"-" + 0.014*"footage" + 0.014*"responders" + 0.013*"machine" + 0.012*"back" + 0.012*"..."'),
(4,
'0.049*"..." + 0.039*"," + 0.037*"school" + 0.034*"URL" + 0.030*"shooting" + 0.023*"-" + 0.021*":" + 0.021*"florida" + 0.019*"parkland" + 0.016*"high"'),
(3,
'0.304*"*" + 0.029*"😂" + 0.009*"-" + 0.008*"chelsea" + 0.007*"emergency" + 0.007*"handler" + 0.006*"staircase" + 0.006*"wait" + 0.006*"🤣" + 0.005*"dance"'),
(2,
'0.070*"isis" + 0.035*"inspired" + 0.033*"islam" + 0.029*"akbar" + 0.020*"allah" + 0.016*"allahu" + 0.013*"instagram" + 0.009*"disney" + 0.008*"shouts" + 0.006*"account"'),
(1,
'0.059*"." + 0.048*"," + 0.017*"..." + 0.016*"shooting" + 0.015*""" + 0.012*"URL" + 0.011*"-" + 0.011*"?" + 0.011*"\'s" + 0.010*"school"'),
(0,
'0.320*"!" + 0.042*"shoot" + 0.013*"?" + 0.010*"." + 0.007*"fucking" + 0.006*"shooting" + 0.006*"URL" + 0.005*"_" + 0.005*"jew" + 0.005*"\'s"')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment