In [1]:
from gensim.models import AuthorTopicModel
model = AuthorTopicModel.load('model.atmodel')
In [2]:
model.show_topics(num_topics=100)
Out[2]:
[(0,
'0.029*"opiniónlsr" + 0.019*"yosoitu" + 0.008*"todopersonal" + 0.006*"LoMásYI COLUMNA" + 0.006*"columnadehoy" + 0.004*"FOTOS Así" + 0.004*"metrópoli" + 0.004*"chitlgalvez" + 0.003*"especialeslsr" + 0.003*"videocolumnalsr"'),
(1,
'0.014*"noticias" + 0.012*"fm" + 0.009*"enpunto" + 0.008*"cdmx" + 0.007*"tláhuac" + 0.007*"pri" + 0.006*"autoridades" + 0.006*"franklin" + 0.006*"gobierno" + 0.005*"duarte"'),
(2,
'0.009*"ligamxfemenil" + 0.006*"rudycoen" + 0.006*"mulsopolitico" + 0.005*"Rodolfo Higareda" + 0.005*"higareda" + 0.005*"Francisco Cárdenas Cruz" + 0.005*"aguilar" + 0.005*"Ángeles Aguilar" + 0.005*"mfloresarellano" + 0.005*"bibianabelsasso"'),
(3,
'0.005*"escobedo" + 0.004*"simpatía" + 0.004*"inmenso" + 0.003*"mannypacquiao" + 0.003*"Angélica Rivera" + 0.003*"daliakaki" + 0.003*"PorSiNoLoViste Así" + 0.003*"receso" + 0.002*"racistas" + 0.002*"jordan"'),
(4,
'0.011*"redesdepoder" + 0.011*"redesdepodermty" + 0.007*"cavernícola" + 0.007*"documentoíndigo" + 0.006*"Opinión de" + 0.006*"calentamiento" + 0.006*"opus" + 0.005*"tinnitus" + 0.004*"lewispugh" + 0.004*"reuters"'),
(5,
'0.038*"másleídas" + 0.037*"másleídas_aristegui" + 0.011*"AristeguiEnVivo …" + 0.007*"Javier Olmedo Titular Comipems" + 0.005*"drlorenzomeyer" + 0.005*"soypepemacias" + 0.004*"conferencias" + 0.004*"isrobles" + 0.004*"soyninonauta" + 0.004*"AristeguiEnVivo…"'),
(6,
'0.018*"años" + 0.016*"fotos" + 0.011*"vida" + 0.009*"rius" + 0.008*"mundo" + 0.007*"río" + 0.007*"política" + 0.006*"millones" + 0.006*"agosto" + 0.005*"mujeres"'),
(7,
'0.007*"sección" + 0.006*"pepe" + 0.005*"gilberto" + 0.004*"grillo" + 0.004*"Pepe Grillo" + 0.003*"ibetanzosmtdf" + 0.003*"debieron" + 0.003*"LoÚltimo " + 0.003*"Gilberto Guevara" + 0.003*"nacionalcronicacommx"'),
(8,
'0.061*"epigmenioibarra" + 0.051*"pasedelista" + 0.043*"peñadebeserdespedidoya" + 0.037*"pasedelista_pm" + 0.019*"reglas" + 0.018*"verde" + 0.009*"fabriziomejia" + 0.009*"canallasforever" + 0.007*"molotovmx" + 0.006*"gabytrodea"'),
(9,
'0.000*"bryant" + 0.000*"Kobe Bryant" + 0.000*"estalla" + 0.000*"PERO MUCHO" + 0.000*"Conoces todas las películas…" + 0.000*"willy" + 0.000*"encendida" + 0.000*"Willy Toledo" + 0.000*"homófobo" + 0.000*"kobe"'),
(10,
'0.012*"collado" + 0.012*"homozapp" + 0.011*"PRESTANOMBRES del" + 0.008*"veras" + 0.006*"sacados" + 0.006*"Entérate: WestHamUtd subasta playera firmada de CH14_" + 0.006*"Fernando del Collado" + 0.006*"FCBarcelona_es ante" + 0.006*"apobación" + 0.006*"la Ley de Vida Silvestre"'),
(11,
'0.018*"ciroenimagen" + 0.007*"paolavirrueta" + 0.006*"entrevistamos" + 0.005*"gob" + 0.005*"Gobernador de Quintana Roo" + 0.004*"fredy" + 0.004*"interactuar" + 0.003*"Fredy Sosa" + 0.003*"astray" + 0.003*"nicole"'),
(12,
'0.060*"aristegui" + 0.029*"president" + 0.021*"this" + 0.020*"as" + 0.019*"an" + 0.018*"what" + 0.018*"by" + 0.016*"us" + 0.014*"president_trump" + 0.011*"now"'),
(13,
'0.007*"Universidad de Sevilla" + 0.006*"Arquidiócesis Primada de México" + 0.006*"primada" + 0.006*"párroco" + 0.006*"nombrar" + 0.006*"Gloria Guevara" + 0.006*"ixtapan" + 0.006*"Gobierno de Morelos" + 0.006*"instalados" + 0.005*"movilizaciones"'),
(14,
'0.009*"euros" + 0.006*"ledezma" + 0.005*"millones_euros" + 0.005*"antonio_ledezma" + 0.005*"Antonio Ledezma" + 0.005*"alemania" + 0.005*"española" + 0.004*"revistaproceso" + 0.004*"arresto" + 0.004*"jenarovillamil"'),
(15,
'0.009*"lasagaoficial" + 0.006*"sagalive" + 0.006*"sigas" + 0.004*"dormido" + 0.004*"richiesgenial" + 0.004*"mercadillo" + 0.003*"ardiendo" + 0.003*"romerocoello" + 0.002*"haré" + 0.002*"tendrían"'),
(16,
'0.099*"lomásyi" + 0.047*"notieress" + 0.011*"padremachorro" + 0.009*"México Entérate" + 0.009*"mazapereda" + 0.009*"libertadreligiosa" + 0.009*"TU VOZ" + 0.008*"siredingv" + 0.008*"laicos" + 0.008*"LoMásYI CRISIS"'),
(17,
'0.009*"paradisus" + 0.009*"atn" + 0.006*"cd" + 0.005*"_TripleW Vicio" + 0.003*"solidario" + 0.003*"mande" + 0.003*"Federico Arreola" + 0.003*"ramonbecerra" + 0.003*"creando" + 0.003*"arreola"'),
(18,
'0.030*"mexicosocial" + 0.022*"effipn" + 0.014*"enriquegraue" + 0.010*"mrselfridge" + 0.008*"MexicoSocial_ La educación superior" + 0.008*"MexicoSocial_" + 0.008*"Rector de la UNAM_MX" + 0.006*"chueca" + 0.006*"cordiales" + 0.006*"detrásdeunclick"'),
(19,
'0.011*"jorgeandresmx" + 0.010*"PRI Asamblea" + 0.006*"cric" + 0.006*"monicamateosv" + 0.006*"hectorchavezgr" + 0.005*"octavo" + 0.004*"ño" + 0.004*"endilguemos" + 0.004*"nimio" + 0.004*"esrfmx"'),
(20,
'0.037*"matutinoeress" + 0.028*"eslahoradeopinar" + 0.021*"foroglobal" + 0.014*"forotv" + 0.013*"forotv_canal" + 0.013*"FOROtv Canal" + 0.012*"izzi_sky" + 0.012*"izzi" + 0.012*"sky" + 0.010*"eslahoradeopinar_leozuckermann"'),
(21,
'0.024*"cnnee" + 0.017*"conclualcaldes" + 0.011*"President Trump" + 0.011*"south" + 0.011*"become" + 0.010*"hard" + 0.010*"were" + 0.009*"morning" + 0.007*"market" + 0.006*"hours"'),
(22,
'0.010*"fdodiaznaranjo" + 0.001*"ventanilla" + 0.000*"homófobo" + 0.000*"Willy Toledo" + 0.000*"bryant" + 0.000*"kobe" + 0.000*"PERO MUCHO" + 0.000*"Kobe Bryant" + 0.000*"Conoces todas las películas…" + 0.000*"willy"'),
(23,
'0.008*"Uber_MEX Fuiste" + 0.005*"porras" + 0.004*"irosasr" + 0.004*"datosabiertos" + 0.004*"infotecmexico" + 0.004*"Jajaja Muy" + 0.004*"DatosAbiertos y la transparencia de la información" + 0.004*"leernos" + 0.004*"preocupado" + 0.004*"Drdesconocido Es Flickr"'),
(24,
'0.000*"bryant" + 0.000*"Kobe Bryant" + 0.000*"estalla" + 0.000*"PERO MUCHO" + 0.000*"Conoces todas las películas…" + 0.000*"willy" + 0.000*"encendida" + 0.000*"Willy Toledo" + 0.000*"homófobo" + 0.000*"kobe"'),
(25,
'0.014*"moreira" + 0.010*"policia" + 0.008*"Los Duarte Borge Yarrington Moreira Siguieran" + 0.008*"ayotzinapaesuncrimendeestado" + 0.008*"JUSTICIA VERDAD" + 0.008*"perpetre" + 0.008*"disfrace" + 0.007*"yarrington" + 0.006*"gangrena" + 0.006*"presidenciables"'),
(26,
'0.039*"traiciona" + 0.026*"finge" + 0.013*"impunemente" + 0.013*"OHL HIGA Oderbrecht Saquean" + 0.013*"Duarte Peña" + 0.013*"oderbrecht" + 0.004*"satírica" + 0.003*"acucioso" + 0.003*"mrkompa" + 0.003*"El Poli"'),
(27,
'0.034*"marthareyesb" + 0.025*"ntt_marthareyesb" + 0.017*"efektonacional" + 0.016*"tp" + 0.016*"tp_megacable" + 0.016*"izz_sky" + 0.016*"izz" + 0.015*"efektoentuvida" + 0.014*"danycarvallo" + 0.014*"vladimirgaleana"'),
(28,
'0.016*"federicopatino" + 0.009*"vocesendirecto" + 0.008*"lipton" + 0.008*"fmi" + 0.008*"David Lipton" + 0.006*"FedericoPatino_" + 0.005*"demasiados" + 0.005*"made" + 0.005*"group" + 0.005*"pareció"'),
(29,
'0.006*"laopinión" + 0.006*"osvaldomonos" + 0.005*"Eduardo Gómez" + 0.004*"envideo" + 0.004*" Policiaca" + 0.004*"cuidatudinero" + 0.003*"heraldocuu" + 0.003*"megamarcha" + 0.003*"caosvial" + 0.003*"laprensaoem"'),
(30,
'0.005*"Jesús Corona" + 0.005*"Alerta Se" + 0.005*"imagendeldía" + 0.003*"irresponsables" + 0.002*"obesas" + 0.002*"FelizLunes BuenInicioDeSemana" + 0.002*"bueniniciodesemana" + 0.002*"cantará" + 0.002*"Trump”" + 0.002*"incrementan"'),
(31,
'0.007*"fincalacarrodilla" + 0.006*"compartan" + 0.005*"pasadita" + 0.005*"sen" + 0.005*"Valle de Guadalupe" + 0.004*"periodístico" + 0.002*"sillon" + 0.002*"6K Favorited See" + 0.002*"Xóchilt El Universal" + 0.002*"raulmorono"'),
(32,
'0.048*"encontexto" + 0.038*"paraescuchar" + 0.007*"ParaEscuchar Que" + 0.006*"kilo" + 0.006*"poli" + 0.005*"ferreyra" + 0.005*"agronoticiasmx" + 0.004*"asíderápido" + 0.004*"Edomex Morena" + 0.004*"Carlos Ferreyra"'),
(33,
'0.000*"bryant" + 0.000*"Kobe Bryant" + 0.000*"estalla" + 0.000*"PERO MUCHO" + 0.000*"Conoces todas las películas…" + 0.000*"willy" + 0.000*"encendida" + 0.000*"Willy Toledo" + 0.000*"homófobo" + 0.000*"kobe"'),
(34,
'0.012*"beatrizportega" + 0.012*"sesuscraiz" + 0.012*"fdvg" + 0.009*"clausgr" + 0.006*"feravedoy" + 0.006*"Presidencial de PRI_Nacional" + 0.006*"Vía osoweb" + 0.006*"tssss" + 0.006*"osoweb" + 0.006*"antonieta"'),
(35,
'0.000*"bryant" + 0.000*"Kobe Bryant" + 0.000*"estalla" + 0.000*"PERO MUCHO" + 0.000*"Conoces todas las películas…" + 0.000*"willy" + 0.000*"encendida" + 0.000*"Willy Toledo" + 0.000*"homófobo" + 0.000*"kobe"'),
(36,
'0.008*"arrasa" + 0.005*"pedrerol" + 0.004*"corberó" + 0.004*"Úrsula Corberó" + 0.004*"úrsula" + 0.004*"abrazos" + 0.004*"risa" + 0.004*"carlotaeramirez" + 0.004*"alvaromenlon" + 0.004*"Alberto Garzón"'),
(37,
'0.027*"alynmon" + 0.009*"actualidadrt" + 0.006*"destituya" + 0.006*"Todo México" + 0.006*"represor" + 0.006*"indignos" + 0.005*"generalizada" + 0.004*"traidor" + 0.004*"noveno" + 0.003*"niunfraudemasmx"'),
(38,
'0.014*"magdaleno" + 0.014*"sistemática" + 0.010*"lanotadura" + 0.010*"espuma" + 0.009*"Venezuela Video" + 0.007*"sábados" + 0.007*"atónica" + 0.006*"balístico" + 0.006*"gobierna" + 0.006*"Francesco Totti"'),
(39,
'0.073*"alaire" + 0.018*"cirogomezl" + 0.012*"telefórmula" + 0.011*"pdte" + 0.010*"espectáculos" + 0.010*"fm_telefórmula" + 0.008*"abriendolaconversación" + 0.008*"cirogomezl_porlamañana" + 0.007*"Padre Machorro" + 0.006*"seria"'),
(40,
'0.037*"teconectafm" + 0.031*"oncenoticiastv" + 0.018*"arrobafm" + 0.005*"Lourdes Almeida" + 0.003*"La Razón de Roberto Diego Ortega" + 0.003*"Toño Valdés" + 0.003*"Areli Cano" + 0.003*"contestario" + 0.003*"maricopa" + 0.003*"exalguacil"'),
(41,
'0.002*"marthaanaya" + 0.002*"cómico" + 0.002*"componenda" + 0.002*"fijados" + 0.002*"distracción" + 0.002*"filipoocadiz" + 0.002*"joseenriquerovirosapriego" + 0.002*"legitima" + 0.002*"rainmanware" + 0.002*"trollhusbandgina"'),
(42,
'0.042*"soyfdelrincon" + 0.014*"conclusiones" + 0.008*"concluonu" + 0.007*"vicepresidencia" + 0.007*"atraviesa" + 0.006*"perseguidos" + 0.006*"ohio" + 0.006*"boliviano" + 0.006*"vzla" + 0.006*"sabian"'),
(43,
'0.018*"peñafarsante" + 0.017*"aristeguienvivo" + 0.016*"sistema" + 0.012*"finanzas" + 0.011*"nicolás_maduro" + 0.011*"nicolás" + 0.011*"Nicolás Maduro" + 0.011*"falleció" + 0.009*"bastadementiras" + 0.009*"penal"'),
(44,
'0.011*"losniñosdelaguerradelsur" + 0.010*"smartphone" + 0.005*"allison" + 0.004*"cejas" + 0.004*"arriban" + 0.004*"carnaval" + 0.004*"ssa" + 0.003*"niñosdelaguerradelsur" + 0.003*"mantenga" + 0.003*"pasoeres"'),
(45,
'0.035*"trump" + 0.021*"enfoque" + 0.019*"méxico" + 0.017*"epn" + 0.012*"franklin" + 0.012*"peña" + 0.009*"eu" + 0.009*"tormenta" + 0.007*"eeuu" + 0.007*"puebla"'),
(46,
'0.011*"one" + 0.008*"asia" + 0.007*"arturozamora" + 0.006*"reos" + 0.006*"analistas" + 0.005*"artistas" + 0.005*"suma" + 0.005*"claudiashein" + 0.005*"El Chapo" + 0.004*"desarrollo"'),
(47,
'0.020*"jorgeramosnews" + 0.013*"GaelGarciaB DemianBichir diegoluna_" + 0.010*"CarlosL César ChristianA" + 0.010*"gaelgarciab" + 0.010*"carlosl" + 0.010*"Antonio Benjamin Bernardo" + 0.010*"benjamin" + 0.010*"christiana" + 0.010*"christiant" + 0.010*"carlosiván"'),
(48,
'0.010*"cover" + 0.008*"marianruzzi" + 0.006*"openculture" + 0.006*"eternidad" + 0.005*"Mr Robot" + 0.005*"globo" + 0.005*"Festival Internacional del Globo de León" + 0.005*"excusas" + 0.005*"peeeero" + 0.005*"aliens"'),
(49,
'0.049*"mesaparatodos" + 0.038*"entrevistamvs" + 0.012*"marcaclaromvs" + 0.009*"carloszup" + 0.008*"fansdemiyagi" + 0.008*"etorreblancaj" + 0.007*"LuisCardenasMx FM" + 0.007*"Manuel Gómez" + 0.007*"ensutinta" + 0.005*"charrosvsgangsters"'),
(50,
'0.055*"alaireconpaola" + 0.020*"imagen_radio" + 0.017*"Imagen Radio" + 0.013*"másgrandequenunca" + 0.012*"conduce" + 0.011*"imageninformativa" + 0.006*"radioactiva" + 0.006*"parodia" + 0.005*"pañales" + 0.005*"egresados"'),
(51,
'0.000*"bryant" + 0.000*"Kobe Bryant" + 0.000*"estalla" + 0.000*"PERO MUCHO" + 0.000*"Conoces todas las películas…" + 0.000*"willy" + 0.000*"encendida" + 0.000*"Willy Toledo" + 0.000*"homófobo" + 0.000*"kobe"'),
(52,
'0.022*"afcvcfc" + 0.012*"nayaroldan" + 0.010*"jorgeisraelh" + 0.008*"trailer" + 0.007*"relatosdemujeres" + 0.007*"elicación" + 0.006*"wtf" + 0.005*"sead" + 0.005*"mertesacker" + 0.005*"ternura"'),
(53,
'0.000*"bryant" + 0.000*"Kobe Bryant" + 0.000*"estalla" + 0.000*"PERO MUCHO" + 0.000*"Conoces todas las películas…" + 0.000*"willy" + 0.000*"encendida" + 0.000*"Willy Toledo" + 0.000*"homófobo" + 0.000*"kobe"'),
(54,
'0.040*"sdpnoticias" + 0.037*"vía_sdpnoticias" + 0.013*"Encuesta de Facebook" + 0.010*"comscore" + 0.008*"federicoarreola" + 0.007*"fantoche" + 0.006*"confirmada" + 0.005*"vasconcelos" + 0.005*"rickypedraza" + 0.005*"senamest"'),
(55,
'0.009*"verne" + 0.009*"smoda" + 0.007*"olivares" + 0.006*"uu" + 0.006*"ee" + 0.005*"Melanie Olivares" + 0.005*"buenavidaep" + 0.004*"sentarse" + 0.004*"cincodiascom" + 0.004*"solucionó"'),
(56,
'0.012*"chécalo" + 0.010*"gcerveravalee" + 0.004*"teléfonorojo" + 0.004*"obligaba" + 0.004*"mosca" + 0.004*"davidsanchezca" + 0.004*"nykte" + 0.003*"adriantrejo" + 0.003*"locartoon" + 0.003*"enlasemana"'),
(57,
'0.011*"pitaamor" + 0.009*"selfridges" + 0.009*"tablerodeajedrez" + 0.007*"cinedelonce" + 0.007*"factorciencia" + 0.007*"inmunológico" + 0.004*"Dr Enrique Graue" + 0.004*"Saludos cordiales" + 0.004*"agradecemos" + 0.004*"canalonce"'),
(58,
'0.004*"entendido" + 0.004*"maelvallejo" + 0.004*"misskarrusel" + 0.003*"evaden" + 0.002*"encontré" + 0.002*"aprovechando" + 0.002*"devuelvan" + 0.002*"jeffking" + 0.002*"drkevorkian" + 0.002*"paolaugalde"'),
(59,
'0.007*"manzanares" + 0.007*"vendedor" + 0.005*"parezca" + 0.005*"desacreditar" + 0.000*"encendida" + 0.000*"Conoces todas las películas…" + 0.000*"Willy Toledo" + 0.000*"estalla" + 0.000*"willy" + 0.000*"PERO MUCHO"'),
(60,
'0.026*"carlosramirezh" + 0.022*"indicadorpolitico" + 0.007*"noticiasmvs" + 0.006*"Estado en Casa Blanca" + 0.006*"Ciudad Universitaria de UNAM_MX" + 0.005*"das" + 0.005*"motörhead" + 0.005*"David Bowie" + 0.005*"werakuri" + 0.004*"apontedavid"'),
(61,
'0.025*"fernandozarates" + 0.017*"lajornada" + 0.017*"gdehoyoswalther" + 0.013*"fiorillo" + 0.013*"Carlos Fiorillo" + 0.011*"fitchratings" + 0.007*"astillero" + 0.006*"eponiatowska" + 0.006*"robertoborge" + 0.006*"cachorro"'),
(62,
'0.094*"despiertaconloret" + 0.052*"lasnoticiascondanielle" + 0.030*"enpunto_denisemaerker" + 0.016*"mendezraq" + 0.012*"lrubin" + 0.008*"EnPunto DeniseMaerker…" + 0.008*"EnPunto…" + 0.006*"francocasella" + 0.005*"despiertacondeportes" + 0.005*"trafico"'),
(63,
'0.051*"excélsiortv" + 0.021*"excélsiorinforma" + 0.009*"excélsior" + 0.009*"excelsior" + 0.008*"tamaravargasof" + 0.006*"yuririasierra" + 0.006*"esperanzas" + 0.006*"drdesconocido" + 0.006*"rodrigoorenday" + 0.006*"frankymostro"'),
(64,
'0.006*"genarolozano" + 0.003*"anapordorica" + 0.000*"Willy Toledo" + 0.000*"willy" + 0.000*"kobe" + 0.000*"homófobo" + 0.000*"irreconocible" + 0.000*"pardo" + 0.000*"encendida" + 0.000*"Conoces todas las películas…"'),
(65,
'0.008*"engéntate" + 0.008*"apellidos" + 0.007*"arternativo" + 0.007*"modareforma" + 0.007*"visitaguiada" + 0.006*"másvalemaña" + 0.005*"changarreandocdmx" + 0.005*"laveoonolaveo" + 0.005*"enhebracolectiv" + 0.005*"favorece"'),
(66,
'0.003*"fiera" + 0.003*"negrete" + 0.003*"precisa" + 0.000*"Willy Toledo" + 0.000*"kobe" + 0.000*"homófobo" + 0.000*"bryant" + 0.000*"Conoces todas las películas…" + 0.000*"encendida" + 0.000*"PERO MUCHO"'),
(67,
'0.014*"El Universal" + 0.005*"Portada Excelsior" + 0.002*"Jorge A Chávez Presa" + 0.002*"fiabilidad" + 0.002*"Método Aloha" + 0.002*"Jean Meyer" + 0.002*"apresen" + 0.002*"Fractura ‘" + 0.002*"Francisco Valdés Ugalde" + 0.002*"compranet"'),
(68,
'0.005*"who" + 0.005*"white" + 0.004*"their" + 0.004*"said" + 0.004*"change" + 0.004*"house" + 0.003*"been" + 0.003*"climate" + 0.003*"americans" + 0.002*"report"'),
(69,
'0.036*"bbcmundo" + 0.009*"hoyenanimal" + 0.008*"condenó" + 0.007*"eedienteanimal" + 0.006*"lujambioalberto" + 0.005*"eleccionesymas" + 0.005*"betoborge" + 0.004*"pamelarogue" + 0.004*"San Miguel de Allende" + 0.004*"uanl"'),
(70,
'0.104*"enfoque_noticias" + 0.079*"enfoquenoticias" + 0.010*"EnfoqueNoticias…" + 0.008*"stereocienmx" + 0.007*"Enfoque Noticias" + 0.006*"carmonamartin" + 0.006*"puntosycomas" + 0.004*"soriana" + 0.004*" Enfoque Noticias" + 0.004*"gercedillo"'),
(71,
'0.024*"video" + 0.014*"venezuela" + 0.008*"cdmx" + 0.007*"méxico" + 0.007*"vía" + 0.007*"años" + 0.006*"maduro" + 0.005*"constituyente" + 0.005*"columna" + 0.004*"asamblea"'),
(72,
'0.005*"bueh" + 0.005*"risa" + 0.005*"previsor" + 0.005*"preguntaban" + 0.005*"Hasta los polis preguntaban" + 0.005*"desorganizado" + 0.005*"Hay…" + 0.005*"polis" + 0.000*"pasadizos" + 0.000*"primark"'),
(73,
'0.017*"alfredolecona" + 0.017*"albertoserdan" + 0.012*"arnemx" + 0.003*"alarmismo" + 0.003*"satisfechos" + 0.003*"rips" + 0.003*"conste" + 0.003*"edymex" + 0.003*"bebido" + 0.003*"In a Swimmer’s Two-Year Quest"'),
(74,
'0.008*"reivindica" + 0.006*"mandara" + 0.005*"bonitos" + 0.005*"reivindicar" + 0.004*"fascismo" + 0.004*"Augusto Pinochet" + 0.003*"beba" + 0.003*"engañaron" + 0.002*"ÚLTIMA HORA La Fiscalía" + 0.002*"apoyes"'),
(75,
'0.019*"time" + 0.015*"get" + 0.013*"power" + 0.012*"him" + 0.010*"nothing" + 0.009*"between" + 0.009*"episode" + 0.008*"war" + 0.007*"takes" + 0.007*"died"'),
(76,
'0.001*"fmf" + 0.000*"bryant" + 0.000*"estalla" + 0.000*"PERO MUCHO" + 0.000*"Conoces todas las películas…" + 0.000*"willy" + 0.000*"encendida" + 0.000*"Willy Toledo" + 0.000*"homófobo" + 0.000*"kobe"'),
(77,
'0.025*"laotraopinión" + 0.019*"contraste" + 0.013*"plumasinvitadas" + 0.012*"EN CONTRASTE" + 0.005*"eedientepolítico" + 0.005*"idiotas" + 0.004*"ItinerarioPolítico " + 0.004*"rigo" + 0.004*"comentamos" + 0.004*"romo"'),
(78,
'0.007*"estaré" + 0.005*"bitácora" + 0.005*"obtenida" + 0.005*"regidoras" + 0.005*"aeromexico" + 0.005*"leerla" + 0.004*"igualmente" + 0.004*"comentarla" + 0.003*"Museo Nacional de Arte de Cataluña" + 0.002*"populismo"'),
(79,
'0.019*"autosef" + 0.014*"monerosfinancieros" + 0.009*"rivapa" + 0.007*"monerorictus" + 0.006*"ruiztorre" + 0.005*"reflector" + 0.004*"pyme" + 0.004*"alejo" + 0.004*"ferrari" + 0.003*"ginamorettc"'),
(80,
'0.016*"sandoval" + 0.012*"informaciónw" + 0.009*"dossierseguridad" + 0.009*"asilascosasw" + 0.007*"pacas" + 0.005*"lujosa" + 0.005*"asísopitas" + 0.005*"wradiomexico" + 0.005*"marthadebayleenw" + 0.004*"marchapormorelos"'),
(81,
'0.003*"presijajajajajaja" + 0.000*"encendida" + 0.000*"willy" + 0.000*"homófobo" + 0.000*"Willy Toledo" + 0.000*"bryant" + 0.000*"estalla" + 0.000*"PERO MUCHO" + 0.000*"Kobe Bryant" + 0.000*"Conoces todas las películas…"'),
(82,
'0.011*"trenes" + 0.008*"platico" + 0.007*"quiroz" + 0.007*"deberíamos" + 0.005*"volveré" + 0.004*"fblive" + 0.004*"atributos" + 0.004*"feroces" + 0.004*"amos" + 0.004*"cirogomezl"'),
(83,
'0.000*"bryant" + 0.000*"Kobe Bryant" + 0.000*"estalla" + 0.000*"PERO MUCHO" + 0.000*"Conoces todas las películas…" + 0.000*"willy" + 0.000*"encendida" + 0.000*"Willy Toledo" + 0.000*"homófobo" + 0.000*"kobe"'),
(84,
'0.000*"bryant" + 0.000*"Kobe Bryant" + 0.000*"estalla" + 0.000*"PERO MUCHO" + 0.000*"Conoces todas las películas…" + 0.000*"willy" + 0.000*"encendida" + 0.000*"Willy Toledo" + 0.000*"homófobo" + 0.000*"kobe"'),
(85,
'0.032*"askmenlatam" + 0.032*"vía_askmenlatam" + 0.014*"autosrpmoficial" + 0.007*"empadron" + 0.004*"aficionado" + 0.004*"infiniti" + 0.003*"¡ATENCIÓN" + 0.003*"juanterrazas" + 0.003*"queridísima" + 0.002*"publimetrodominical"'),
(86,
'0.015*"méxico" + 0.009*"ciudad" + 0.009*"norte" + 0.008*"entrevista" + 0.007*"mil" + 0.007*"corea" + 0.006*"paso" + 0.006*"corea_norte" + 0.006*"Corea del Norte" + 0.005*"pesos"'),
(87,
'0.130*"laprimeramvs" + 0.030*"alaire_laprimeramvs" + 0.024*"laprimeramvs_fm" + 0.015*"ptellovillagran" + 0.007*"mesamvs" + 0.007*"sheilarenne" + 0.005*"patricioking" + 0.005*"gabycuevas" + 0.005*"primerasplanas" + 0.004*"pabloescuderom"'),
(88,
'0.016*"gaelgarciab" + 0.003*"gochoalavidava" + 0.003*"gerardofragosom" + 0.003*"discúlpelo" + 0.001*"sirviente" + 0.001*"regente" + 0.001*"elige" + 0.001*"sirvienta" + 0.001*"imagenlaguna" + 0.001*"FMF Apoyarlo"'),
(89,
'0.039*"opinión" + 0.037*"the" + 0.022*"of" + 0.020*"to" + 0.016*"in" + 0.014*"a" + 0.011*"y" + 0.011*"and" + 0.010*"gracias" + 0.008*"is"'),
(90,
'0.040*"from" + 0.036*"how" + 0.026*"most" + 0.019*"in_the" + 0.019*"via" + 0.019*"by" + 0.019*"could" + 0.014*"day" + 0.013*"here" + 0.012*"she"'),
(91,
'0.003*"toño" + 0.003*"rana" + 0.003*"aristeguiemilio" + 0.003*"AristeguiEmilio Tú di rana" + 0.001*"Piedras Negras" + 0.001*"masacre de Allende" + 0.001*"muer" + 0.001*"Nuevo documental" + 0.001*"dtvetv" + 0.001*"gerónimo"'),
(92,
'0.020*"barrazaadriana" + 0.011*"abel" + 0.011*"abelardo" + 0.008*"Abel Abelardo Adán Alexander BastaDeMentiras" + 0.007*"nemexico" + 0.006*"ioaan" + 0.005*"rflorianov" + 0.004*"vinomexicano" + 0.004*"ironía" + 0.004*"aclu"'),
(93,
'0.005*"Ernesto_MDiaz ManceraMiguelMX No va a decir" + 0.002*"O sea" + 0.002*"enterado" + 0.000*"Willy Toledo" + 0.000*"encendida" + 0.000*"kobe" + 0.000*"PERO MUCHO" + 0.000*"Conoces todas las películas…" + 0.000*"irreconocible" + 0.000*"willy"'),
(94,
'0.007*"Portada Milenio" + 0.006*"Portada Reforma" + 0.005*"desdeñan" + 0.004*"arropada" + 0.004*"Frente Amplio “" + 0.004*"Diputados dan luz" + 0.004*"Régimen de Jubilaciones y Pensiones" + 0.004*"jubilaciones" + 0.004*"visitadores" + 0.004*"sntss"'),
(95,
'0.008*"juntosporméxico" + 0.008*"early" + 0.008*"secciones" + 0.004*"gifted" + 0.004*"liniomexico" + 0.004*"biyectedprays" + 0.004*"cuellarcamarena" + 0.004*"trust" + 0.004*"datacivica" + 0.003*"síntesis"'),
(96,
'0.044*"videontx" + 0.043*"audiontx" + 0.011*"infografíantx" + 0.004*"turismontx" + 0.004*"adóndeir" + 0.004*"autosntx" + 0.003*"Franklin &" + 0.003*"undato" + 0.002*"Abierto Los Cabos" + 0.002*"elaboración"'),
(97,
'0.047*"noalsilencio" + 0.042*"x" + 0.021*"hekglez" + 0.015*"rcanudasg" + 0.014*"esuncrimendeestado" + 0.012*"erendiritas" + 0.011*"exigimos" + 0.009*"demianbichir" + 0.009*"residente" + 0.009*"comoleerenbici"'),
(98,
'0.111*"ntt" + 0.030*"rivapa" + 0.016*"lt" + 0.014*"spinoso" + 0.012*"jairavalosl" + 0.008*"latentación" + 0.007*"impreso" + 0.006*"ampliamos" + 0.006*"ejecentral" + 0.005*"efemerides"'),
(99,
'0.025*"enlared" + 0.006*"igualitario" + 0.004*"space" + 0.003*"albertossaurio" + 0.003*"lovienunotv" + 0.003*"alertaran" + 0.003*"puntas" + 0.003*"montando" + 0.003*"vaciar" + 0.003*"acalorada"')]
In [3]:
aut_top = {}
for key, value in model.id2author.items():
aut_top[value] = model.get_author_topics(value)
In [4]:
aut_top
Out[4]:
{'ADNPolitico': [(1, 0.21692398133277213),
(6, 0.031862770379163449),
(45, 0.17734126952842771),
(46, 0.14649895560278045),
(71, 0.17973973189091799),
(86, 0.20005529999636207),
(89, 0.04434365137765419)],
'ActualidadRT': [(1, 0.03078224419213443),
(6, 0.080277869430473894),
(14, 0.21341976952477865),
(45, 0.17025309830282606),
(71, 0.28526055931306593),
(86, 0.20632100440673354),
(89, 0.013182376539782372)],
'Adela_Micha': [(1, 0.046668484473735644),
(6, 0.11358652163079463),
(15, 0.4701268672986974),
(71, 0.068572496381364881),
(86, 0.22267166541573871),
(89, 0.074841350253355338)],
'Amsalazar': [(1, 0.14200574173486766),
(6, 0.018280730241556645),
(12, 0.058715681967276938),
(21, 0.2943070541684239),
(45, 0.12816217103777236),
(71, 0.050920188200957325),
(86, 0.050636909416622328),
(89, 0.2062714542646491),
(90, 0.037211575107946121)],
'AnaPOrdorica': [(1, 0.18260097739679776),
(2, 0.028371330858412994),
(45, 0.10429728596521359),
(71, 0.16699340894441089),
(86, 0.46764897452946735),
(89, 0.038360016033474297)],
'AristeguiOnline': [(1, 0.21823991731286638),
(5, 0.13406568938337302),
(6, 0.074999114944733436),
(14, 0.019111799859940586),
(43, 0.070606569877852354),
(45, 0.031693157219977883),
(71, 0.27476440475890568),
(86, 0.13394950328737221),
(89, 0.041561427764253506)],
'AztecaNoticias': [(1, 0.16105493461783707),
(6, 0.037679027785839751),
(14, 0.033184273648135705),
(30, 0.034527466171638557),
(43, 0.043876113389224723),
(45, 0.061044278422948142),
(71, 0.38084687892903907),
(86, 0.22338866537496466),
(89, 0.020200002485137813)],
'Canal22': [(6, 0.99964247119652538)],
'CanalOnceTV': [(1, 0.080577792588494693),
(6, 0.2598903276709586),
(18, 0.25935765853782217),
(43, 0.07999825283691768),
(45, 0.08751420308251899),
(46, 0.010530541836040148),
(71, 0.13637716089383753),
(86, 0.051558302741751355),
(89, 0.024577284725435633)],
'CarlosLoret': [(1, 0.16683508853735127),
(6, 0.11014726735248667),
(12, 0.012356082019597274),
(45, 0.068075577192279704),
(62, 0.15023794621295425),
(71, 0.2230319374963928),
(86, 0.2337164662044254),
(89, 0.028520507754216971)],
'CiroGomezL': [(1, 0.25354586638222898),
(6, 0.066211559011739612),
(11, 0.057881335513904335),
(12, 0.13141934506725966),
(43, 0.011528019658051633),
(45, 0.14239406297048463),
(71, 0.24710793742330245),
(86, 0.078383609951353475)],
'DeniseDresserG': [(0, 0.019142637774200048),
(1, 0.14695790571583206),
(6, 0.032932107840542256),
(12, 0.074196380367514442),
(43, 0.014711118721147047),
(45, 0.3186302264069657),
(48, 0.027572032734790666),
(71, 0.042601813438775032),
(86, 0.015735752158060928),
(89, 0.1597699443481424),
(90, 0.01199467315045968),
(92, 0.12712167739715341)],
'DeniseMaerker': [(1, 0.99957299129497446)],
'DiegoEOsorno': [(1, 0.070509836388058744),
(6, 0.48491764417126137),
(71, 0.11262564381208243),
(89, 0.047315942005298928),
(91, 0.26180423760137495)],
'E_Q_': [(1, 0.061682343817661765),
(6, 0.28923487960406513),
(7, 0.010615804742215643),
(14, 0.012622918424234105),
(21, 0.14329375909742684),
(71, 0.19928946299921427),
(86, 0.26634580914430966)],
'EfektoNoticias': [(1, 0.087014428878898237),
(6, 0.11128423329241417),
(14, 0.021746095746090557),
(27, 0.20407051212562419),
(43, 0.014466803528571348),
(45, 0.080024810607188412),
(71, 0.27730976713917149),
(86, 0.16702299011313965),
(89, 0.030303612597883476)],
'EjeCentral': [(1, 0.25114398606822452),
(6, 0.032394903659675116),
(8, 0.14056430845368822),
(45, 0.053614721454136559),
(71, 0.18600142164550679),
(86, 0.13408275907836265),
(89, 0.077799722879299774),
(98, 0.12146677673582869)],
'ElFinanciero_Mx': [(1, 0.12132000216530409),
(6, 0.047124491069885172),
(43, 0.011422476281100415),
(45, 0.075059132561496641),
(46, 0.018790754029696984),
(71, 0.20508664650466005),
(79, 0.23744932895284954),
(86, 0.24957438820717628),
(89, 0.02547531402675968)],
'ElHuffPost': [(1, 0.077396111192588185),
(6, 0.12276241035772144),
(14, 0.12738701280184367),
(36, 0.23946963345013153),
(45, 0.058962792995482877),
(71, 0.21854276442162232),
(86, 0.13181349341365006),
(89, 0.018083056443056463)],
'El_Universal_Mx': [(1, 0.13548705578192488),
(6, 0.090333836853923835),
(43, 0.03696213761853024),
(45, 0.16365721484507656),
(71, 0.21289266196641582),
(80, 0.15614890258748432),
(86, 0.13848034102356946),
(89, 0.058062255186550414)],
'EnfoqueNoticias': [(1, 0.1634932187574959),
(6, 0.015766782820918222),
(14, 0.018763090535824121),
(43, 0.016776721575802945),
(45, 0.14684434580918101),
(46, 0.012443448802093811),
(70, 0.23174796822601779),
(71, 0.17346557752245287),
(86, 0.19016094155665678),
(89, 0.027614510392681368)],
'Excelsior': [(1, 0.31375987872821592),
(6, 0.058466880135116917),
(45, 0.039869877619909053),
(63, 0.15585226147353434),
(71, 0.15159353242303539),
(86, 0.24305751197103032),
(89, 0.037169009127369652)],
'ExpansionMx': [(1, 0.081080801301901095),
(6, 0.017207445166195205),
(43, 0.017297736417860178),
(45, 0.058783374685811025),
(46, 0.17060400821517369),
(71, 0.19749904263368412),
(86, 0.41590209044970933),
(89, 0.041504958222108854)],
'FedericoArreola': [(1, 0.055786850727593068),
(6, 0.11164477004938146),
(43, 0.022192928247376325),
(45, 0.075035789043961465),
(46, 0.015108867555499773),
(54, 0.30271174074339458),
(71, 0.33401678049427225),
(86, 0.060637447939428324),
(89, 0.020686428272567395)],
'FernandoDworak': [(1, 0.12982542580019135),
(6, 0.087136766483142933),
(12, 0.035180208254036352),
(43, 0.034529838737225288),
(45, 0.14170597534925389),
(60, 0.20474453942226681),
(71, 0.14531281584784395),
(86, 0.047686880605727927),
(89, 0.17124477613239508)],
'Foro_TV': [(1, 0.28125730372811081),
(6, 0.033190677178537083),
(12, 0.019063791194932577),
(20, 0.15002853387166318),
(43, 0.01256162568574155),
(45, 0.16865845571466623),
(71, 0.18439501677486231),
(86, 0.10287316771104495),
(89, 0.047861131607282545)],
'Imagen_Mx': [(1, 0.047417263729053277),
(6, 0.12517378587976571),
(39, 0.027345145040961326),
(45, 0.082872268461110468),
(50, 0.33601391366410488),
(71, 0.11736156117209237),
(86, 0.16604930408384536),
(89, 0.097214738271646672)],
'J_Fdz_Menendez': [(0, 0.12200973571531008),
(1, 0.38804038690749248),
(45, 0.21797619748475988),
(71, 0.12600857373243907),
(86, 0.039177978395081851),
(89, 0.081368765433123533)],
'JavierSolorzano': [(1, 0.25739232930005124),
(6, 0.15743165800895853),
(40, 0.26093501831579485),
(43, 0.024840809265799638),
(45, 0.06606969327011708),
(71, 0.13794275933034578),
(86, 0.049110984513628456),
(89, 0.029087231316333124)],
'JohnMAckerman': [(1, 0.11061698301422451),
(6, 0.044791279721474404),
(14, 0.11574455642845884),
(37, 0.19860346727217729),
(43, 0.018454827451313858),
(45, 0.10574628350000209),
(71, 0.1550510050508026),
(86, 0.1490723463049039),
(89, 0.094647579546321539)],
'JoseCardenas1': [(1, 0.28872445878504277),
(6, 0.047645358829604537),
(32, 0.086542399592489522),
(45, 0.076433781283549787),
(71, 0.10422781412406648),
(86, 0.35822766962622765),
(89, 0.029066960919135097)],
'LaRazon_mx': [(1, 0.23467141290711971),
(2, 0.039254328281283099),
(6, 0.054963763386871534),
(14, 0.033184321627881992),
(45, 0.027390067793731165),
(71, 0.38375844590699343),
(86, 0.19457951325422423),
(89, 0.03202734937258532)],
'LeonKrauze': [(1, 0.025199121874260131),
(5, 0.24692867084914774),
(6, 0.076454900569024722),
(12, 0.092914155826900144),
(43, 0.013233315072984706),
(45, 0.070127341780427996),
(71, 0.085985574616432747),
(75, 0.040794480107110016),
(86, 0.097500840860604204),
(89, 0.22385346435435077),
(90, 0.025938067527484975)],
'LeonardoCurzio': [(1, 0.095964275536142868),
(6, 0.067761365313117675),
(45, 0.19463811238002451),
(46, 0.032644173618087649),
(61, 0.01729409091568954),
(67, 0.020069115689205396),
(71, 0.20112184047822856),
(86, 0.12998004518263692),
(89, 0.066275691593556826),
(94, 0.16791366550619527)],
'LuisCardenasMx': [(1, 0.34998346391272211),
(6, 0.032995753560727384),
(39, 0.022354872159371552),
(43, 0.020371408174133788),
(45, 0.11397555956435682),
(71, 0.058422356709028005),
(86, 0.12341847815664522),
(87, 0.23896754905096446),
(89, 0.03907159281839833)],
'MarioBeteta': [(1, 0.44445281206359161),
(6, 0.10226441007393394),
(14, 0.027927078318743099),
(43, 0.015122310901811924),
(45, 0.078719068296871642),
(71, 0.10334501871399195),
(86, 0.2097897104986996),
(89, 0.018150122970392191)],
'MexicanTimes': [(1, 0.072701512276062544),
(6, 0.1686642311676754),
(42, 0.12765882745287033),
(43, 0.012107487885031996),
(45, 0.073133235220555134),
(71, 0.12353292784355553),
(86, 0.32355795843242924),
(89, 0.098232868176208687)],
'Milenio': [(71, 0.99985910818862456)],
'NTelevisa_com': [(1, 0.13430423557460627),
(6, 0.095689364617313089),
(14, 0.036449446828995785),
(43, 0.026692662094674798),
(45, 0.070157955223866961),
(62, 0.089022690533480386),
(71, 0.25449634170286028),
(86, 0.27056447282706547),
(89, 0.022354101110932962)],
'NoticiasMVS': [(1, 0.22379047523192189),
(6, 0.069749008035018836),
(39, 0.017895734611583853),
(43, 0.018979187688178422),
(45, 0.1007042599497405),
(49, 0.084673932975265126),
(71, 0.14644726692887713),
(86, 0.29621435854431311),
(89, 0.029150559700861906)],
'Notimex': [(1, 0.13895031929120172),
(6, 0.06277961433086976),
(14, 0.028239351122190264),
(39, 0.02454016909787415),
(43, 0.031664486739339574),
(45, 0.17585774557695494),
(71, 0.18735484415393405),
(86, 0.14766804149754451),
(89, 0.083605493617520538),
(96, 0.11507468298528671)],
'PPmerino': [(1, 0.15193146952351513),
(6, 0.084083172269163828),
(45, 0.11843614844868067),
(71, 0.11304847087834517),
(86, 0.073424344434830063),
(89, 0.19478973561377072),
(90, 0.03117576215573379),
(95, 0.20637268683364005)],
'PabloHiriart': [(1, 0.17021700241257767),
(6, 0.019779649982819648),
(17, 0.16106649943698537),
(45, 0.081388474838828134),
(71, 0.30282942743159047),
(86, 0.054797167329373862),
(89, 0.2039084860365222)],
'Pajaropolitico': [(1, 0.21056294609652276),
(6, 0.027591331432538727),
(43, 0.078751984080769097),
(45, 0.081659950297804193),
(69, 0.15594299381751345),
(71, 0.16310034141862872),
(86, 0.19173354573908413),
(89, 0.090513743699874347)],
'PaolaRojas': [(1, 0.16675980692292802),
(5, 0.027795435255100382),
(6, 0.11514705883771452),
(14, 0.010365640500420442),
(45, 0.13555075435553882),
(65, 0.015722018298628238),
(71, 0.34900139639788946),
(86, 0.12869537212180354),
(89, 0.038661718422158951)],
'PedroFerriz': [(1, 0.11484941606687209),
(6, 0.10320768058519413),
(45, 0.081950807224094049),
(71, 0.11989894332602463),
(86, 0.11803421674765398),
(89, 0.11378481110580745),
(95, 0.34543183378533704)],
'Pizu': [(1, 0.063060667543970189),
(6, 0.06327021740800981),
(12, 0.041121246426648196),
(23, 0.27610919660644734),
(43, 0.025720038924559704),
(45, 0.034029329381405626),
(46, 0.014595007930452578),
(63, 0.12552833992922099),
(71, 0.051755310072258975),
(86, 0.11812169374091154),
(89, 0.14979964450268177)],
'PublimetroMX': [(1, 0.11378441827200052),
(6, 0.055475561646888216),
(8, 0.011135481071481228),
(14, 0.026972923041751511),
(43, 0.013015670916440472),
(45, 0.03557696099426319),
(46, 0.033831757788098757),
(71, 0.22017730885958292),
(85, 0.10859653770719749),
(86, 0.29262880053302365),
(89, 0.084660512260451209)],
'Radio_Formula': [(1, 0.27597279190709412),
(6, 0.06903961742295707),
(39, 0.33269125805264138),
(45, 0.079042632719564951),
(71, 0.082380073764961578),
(86, 0.13289854422626673),
(89, 0.027772403453817839)],
'Reforma': [(1, 0.1368924843887252),
(6, 0.095110902892795418),
(43, 0.057240336848138347),
(44, 0.11637971084355142),
(45, 0.097173524161329683),
(65, 0.013732253166854294),
(71, 0.15847132800698174),
(86, 0.30241879005216921),
(89, 0.022463753068629605)],
'Reporte_Indigo': [(1, 0.17186219533004207),
(6, 0.044491648589954781),
(14, 0.023538236639771875),
(43, 0.026725932396258267),
(45, 0.10538442880368401),
(46, 0.089678777102836865),
(65, 0.15504988914571233),
(71, 0.15024040630808355),
(86, 0.18054779997394782),
(89, 0.050569508476900192)],
'RicardoAlemanMx': [(1, 0.16022710544696295),
(6, 0.032255255912184901),
(12, 0.021154481646879608),
(45, 0.077517371867023024),
(71, 0.19364526726917825),
(77, 0.28539625786705808),
(86, 0.11356748347635925),
(89, 0.11581530978156836)],
'RoyCampos': [(1, 0.11489503046465857),
(6, 0.044925667155179941),
(8, 0.33176862035799259),
(45, 0.10305175117840484),
(71, 0.092130415467620894),
(86, 0.08551884497878845),
(89, 0.22089016554798413)],
'SGarciaSoto': [(1, 0.17184731465587494),
(6, 0.045653594232729397),
(14, 0.027370826965132114),
(19, 0.045226178822716144),
(25, 0.24182629915559939),
(45, 0.054839761543761294),
(71, 0.08122955618764878),
(86, 0.17021550544719999),
(89, 0.14765457551326344)],
'SalCamarena': [(1, 0.02429115865598111),
(6, 0.05770701663034198),
(7, 0.01282908083878046),
(12, 0.056490494382848068),
(21, 0.27235236992726303),
(45, 0.019405849720939641),
(71, 0.19395386921805507),
(86, 0.22923909479396584),
(89, 0.070455509086473855),
(93, 0.030813593228623207),
(98, 0.018636087030389891)],
'SanjuanaMtz': [(1, 0.086040234178845793),
(6, 0.16420784329689311),
(31, 0.19548927694435256),
(43, 0.015037454194337245),
(45, 0.040708701717082754),
(48, 0.019583534239543746),
(71, 0.16732417272222611),
(86, 0.11275021360301879),
(89, 0.18936797390481322)],
'SergioSarmiento': [(43, 0.99151508683927914)],
'SinEmbargoMX': [(1, 0.13067774375795121),
(6, 0.10799077280514538),
(14, 0.071498553664355577),
(43, 0.015305914333150374),
(45, 0.056355257054078352),
(70, 0.099064446307539411),
(71, 0.31106416176680773),
(86, 0.14306634548188421),
(89, 0.063268995915288104)],
'TapiaFernanda': [(1, 0.039205045532262291),
(6, 0.12276098191635189),
(17, 0.011720635978285352),
(43, 0.011272565472048321),
(45, 0.12069445163832211),
(46, 0.010624240660425039),
(71, 0.19068933594728343),
(86, 0.17390014448705624),
(89, 0.092262443425372737),
(97, 0.22446516601455072)],
'UnoNoticias': [(1, 0.19115982433520048),
(5, 0.15965152477473729),
(6, 0.091866340917778164),
(45, 0.067897893847039842),
(71, 0.26053452203403737),
(86, 0.2203014978213241)],
'VILLALVAZO13': [(1, 0.19539249129118083),
(6, 0.16206089640826246),
(30, 0.17255839723303898),
(45, 0.049463092043653144),
(71, 0.23491441502712176),
(86, 0.11560710172458197),
(89, 0.054512583399745913)],
'WRADIOMexico': [(1, 0.29580454084232122),
(6, 0.036665587474539144),
(14, 0.01165757986281744),
(45, 0.075945566393360212),
(71, 0.10986609337439895),
(80, 0.27346979461099713),
(86, 0.16538152687610011),
(89, 0.028838166091029929)],
'Yoinfluyo': [(0, 0.19756624631274661),
(1, 0.037830836548487769),
(6, 0.091877954643054233),
(14, 0.049839470751932208),
(16, 0.056594074778645267),
(43, 0.057272632921677315),
(45, 0.03765244380805615),
(71, 0.23440167430946965),
(86, 0.19198495375254446),
(89, 0.043766983673335584)],
'YuririaSierra': [(1, 0.23033463095121282),
(6, 0.1223250365114416),
(14, 0.024554213445922742),
(31, 0.21764527393125985),
(63, 0.066325169174296442),
(71, 0.1557751452232459),
(86, 0.048037801181306704),
(89, 0.11581853929510097)],
'aguilarcamin': [(1, 0.11357301075504235),
(5, 0.21166957235503814),
(6, 0.056215549348740887),
(14, 0.03753810777636267),
(43, 0.020529014399053132),
(45, 0.083859590552516225),
(46, 0.013683925881385827),
(66, 0.011112179801818457),
(68, 0.010243533994134494),
(71, 0.26503855323844211),
(86, 0.075653587834308172),
(89, 0.087008499291524113)],
'ahope71': [(1, 0.15404128747674797),
(6, 0.069894630075334585),
(21, 0.27916232719905859),
(45, 0.11978512920530671),
(71, 0.12531451252633852),
(86, 0.026072072480894048),
(89, 0.14913313767036279),
(90, 0.069884015578749265)],
'alvaro_delgado': [(1, 0.17019438642185972),
(6, 0.063472462919975201),
(14, 0.015550417429867519),
(25, 0.061620690261003634),
(43, 0.038206366222233952),
(45, 0.11631207564041811),
(65, 0.055493786265997838),
(71, 0.27284322017952667),
(77, 0.03655354847674111),
(86, 0.095790693348852485),
(89, 0.050784075040305791)],
'andreslajous': [(1, 0.16161756163802701),
(6, 0.099380117382832256),
(14, 0.017575920572181838),
(19, 0.010344889707315728),
(28, 0.018186717765738335),
(43, 0.030389689589337899),
(45, 0.1412668032784305),
(71, 0.13941227441939785),
(73, 0.19163089960467203),
(86, 0.029313566609931108),
(89, 0.14831076763265347)],
'arturoangel20': [(1, 0.14963570529871731),
(6, 0.10205203615946581),
(45, 0.080072443424966055),
(52, 0.21210085633112344),
(58, 0.023032005497341957),
(71, 0.10281025696256386),
(86, 0.13934729059691556),
(89, 0.18660803056440611)],
'beltrandelrio': [(1, 0.11917434961406861),
(6, 0.10138872652649392),
(45, 0.034424863669806037),
(63, 0.057839019632174804),
(71, 0.12576540986086363),
(78, 0.31036476814999564),
(86, 0.17904724424597399),
(89, 0.07026324529163773)],
'carloselizondom': [(1, 0.25842695882520139),
(6, 0.07746924490595973),
(14, 0.014808541568607838),
(19, 0.13926212110297642),
(45, 0.098607114884869229),
(46, 0.038802391225709248),
(63, 0.015109378437605679),
(71, 0.15800675350979274),
(86, 0.12295726842264885),
(89, 0.065290215759026091)],
'carlosramirezh': [(1, 0.14849595294307447),
(6, 0.098961360149991712),
(14, 0.010467017384606842),
(41, 0.08525608020582319),
(43, 0.028112053449363603),
(45, 0.072127814943189442),
(60, 0.214522847088577),
(71, 0.15120671596078522),
(82, 0.074433815445918247),
(86, 0.064938396111553928),
(89, 0.049754132240787681)],
'caudillomx': [(71, 0.33587482840492117), (81, 0.33586734727194523)],
'diario24horas': [(1, 0.15407097417556656),
(6, 0.099446095763176534),
(14, 0.029936121829656114),
(43, 0.015450470537951977),
(45, 0.055530924675016607),
(56, 0.10575290093608689),
(71, 0.2574400790949708),
(86, 0.22265496670831147),
(89, 0.059634862109625604)],
'dmorenochavez': [(1, 0.12170370661534755),
(6, 0.069632219005712606),
(45, 0.089517285943233701),
(52, 0.29589777299879028),
(71, 0.18778931118397804),
(86, 0.042817010357010486),
(89, 0.1470268727689838),
(90, 0.040618200663437014)],
'el_pais': [(1, 0.083034936598283995),
(6, 0.12823370437244297),
(14, 0.1074371625661882),
(43, 0.016160146951401697),
(46, 0.011049442019016281),
(55, 0.2031532662592882),
(71, 0.20508311170120513),
(86, 0.14803023157291359),
(89, 0.090426469293791431)],
'eleconomista': [(1, 0.13626559863215634),
(6, 0.049045238930282162),
(12, 0.024066823215077152),
(28, 0.17558173821645351),
(43, 0.021446166463529027),
(45, 0.21381000639508885),
(71, 0.16989501228153256),
(86, 0.13245733813421248),
(89, 0.075342624872079461)],
'elsolde_mexico': [(1, 0.19980063561164388),
(6, 0.0402459861540366),
(29, 0.097065557010182338),
(43, 0.042701435313621902),
(45, 0.066277711263105277),
(71, 0.32331772086600941),
(86, 0.17366958444184313),
(89, 0.054243158443618614)],
'epigmenioibarra': [(1, 0.12984122838545875),
(6, 0.082580214168715693),
(8, 0.28532890886494278),
(13, 0.010673387201414751),
(14, 0.016389730982808479),
(26, 0.013353020060692479),
(43, 0.11032695467633069),
(45, 0.028016598421717512),
(71, 0.095579302137789576),
(86, 0.080086781203362142),
(89, 0.056050933863696389),
(97, 0.070801859425499436)],
'esquivelgerardo': [(1, 0.14704140071567764),
(6, 0.14241028784440951),
(14, 0.026853272099853626),
(20, 0.021876911555855354),
(44, 0.021053722412391885),
(46, 0.079171945579848524),
(47, 0.015200558971988602),
(58, 0.17174014037744198),
(71, 0.14508236856151521),
(80, 0.016888657512342531),
(86, 0.091002289867734856),
(89, 0.10695532851744319)],
'estarc62': [(1, 0.19815237443982311),
(6, 0.1053688063268043),
(14, 0.015821453132797338),
(31, 0.024260850562003635),
(38, 0.01396428319800651),
(46, 0.04599778909637961),
(71, 0.30730959255372786),
(76, 0.010882306966531526),
(88, 0.13654638540449401),
(89, 0.10829040158880111)],
'genarolozano': [(1, 0.11544363234464776),
(6, 0.10468125664171415),
(8, 0.013385165347169246),
(14, 0.023681343017776326),
(45, 0.23375274417768357),
(71, 0.10472545962300607),
(86, 0.12987453218605599),
(89, 0.061393006739272338),
(92, 0.21146255212087131)],
'hdemauleon': [(1, 0.066967342029022367),
(6, 0.11501991143457124),
(12, 0.019022800234271595),
(34, 0.28812870973374677),
(43, 0.026306733371916968),
(45, 0.10518317524061331),
(71, 0.10952025656672386),
(86, 0.10753022102390358),
(89, 0.14593607292935321)],
'informador': [(86, 0.99921009545974715)],
'jairocalixto': [(1, 0.041327285313033049),
(6, 0.11580553068495703),
(36, 0.022233663465617462),
(45, 0.012457540544342959),
(49, 0.039932256599326324),
(71, 0.17902902798498335),
(85, 0.27929048967610204),
(86, 0.089380116286643038),
(89, 0.21855254742436656)],
'javieraparicio': [(8, 0.98356146568397573)],
'jenarovillamil': [(1, 0.13126909224292538),
(6, 0.17033803572387457),
(8, 0.017186255400397747),
(10, 0.16060907290873669),
(12, 0.016337794217894705),
(14, 0.034067240717089706),
(43, 0.022767487336023198),
(45, 0.11275613511567416),
(71, 0.155713604223254),
(86, 0.09996641787132074),
(89, 0.076740817678335863)],
'jorgeramosnews': [(1, 0.028385868528365641),
(6, 0.022826707873991377),
(12, 0.048394865568732556),
(45, 0.1203299251050442),
(52, 0.022797972365590374),
(71, 0.31575192429336874),
(86, 0.12907125282347695),
(89, 0.14151837761562222),
(90, 0.05414232660275195),
(92, 0.10994958960067766)],
'jrisco': [(1, 0.076615244369723223),
(6, 0.075780119505277022),
(12, 0.081528230120906819),
(21, 0.23009363323526497),
(45, 0.14872283664274663),
(71, 0.14535127137010068),
(86, 0.060551314908291527),
(89, 0.1797352724311776)],
'jshm00': [(0, 0.03552531459979958),
(1, 0.035936179661028238),
(6, 0.11384938680109362),
(12, 0.15295238161434466),
(14, 0.026336176474507603),
(20, 0.024079305643966077),
(71, 0.072465165865438427),
(85, 0.23111239411872789),
(86, 0.048543143213123648),
(89, 0.21399294588190534),
(95, 0.014485567306025255)],
'julioastillero': [(1, 0.11056537805594387),
(6, 0.068591507342580779),
(43, 0.15676349489098146),
(45, 0.045284871834943695),
(54, 0.18513535991691019),
(71, 0.22823330601116046),
(86, 0.17052479555414521),
(89, 0.034380359592544339)],
'karlaiberia': [(45, 0.99822132687437648)],
'kdartigues': [(1, 0.05259319678253286),
(6, 0.14098400267761765),
(7, 0.19572997851650994),
(17, 0.036419870833237784),
(43, 0.097682447078006024),
(45, 0.14658779413212936),
(71, 0.12134161922251549),
(86, 0.030720995435702374),
(89, 0.13415857603909423),
(96, 0.019497971866134046)],
'lacronicadehoy': [(1, 0.089770621196202841),
(6, 0.1094606376407626),
(7, 0.085609276166207754),
(43, 0.1093323330084678),
(45, 0.073221645600627314),
(71, 0.22183868632054046),
(86, 0.23023794257161784),
(89, 0.080365726176698835)],
'lajornadaonline': [(1, 0.1041719934216057),
(6, 0.11899557725893596),
(45, 0.060341511233073582),
(61, 0.18934258592237327),
(71, 0.22788875039155054),
(86, 0.24752500516407394),
(89, 0.051424088190215232)],
'lasillarota': [(0, 0.13379681006150101),
(1, 0.2626310625993602),
(6, 0.15878667860314441),
(14, 0.04642365206098982),
(43, 0.049449249443215715),
(45, 0.043364223528078047),
(71, 0.20604762932301168),
(86, 0.0604799180713715),
(89, 0.032403830820403004)],
'lopezdoriga': [(1, 0.15764899617860337),
(6, 0.11728333268697513),
(43, 0.098738867909655206),
(45, 0.069954339280344002),
(71, 0.25879198774528467),
(86, 0.29298212621552411)],
'lydiacachosi': [(1, 0.062030824069886456),
(6, 0.04946941627143054),
(45, 0.047313277413208954),
(47, 0.36501873352337594),
(71, 0.1776892600158021),
(86, 0.067144497549540605),
(89, 0.20642160724479494)],
'macariomx': [(1, 0.023550033611235394),
(6, 0.022568349204394881),
(12, 0.3199789742086811),
(45, 0.28889701048996774),
(71, 0.029492242763497691),
(86, 0.053404225504234119),
(89, 0.25707598517960817)],
'mariocampos': [(12, 0.98884395423130944)],
'maurimm': [(6, 0.093880541962668193),
(47, 0.20085348867979758),
(71, 0.20085878341457963),
(86, 0.20785645056781926),
(89, 0.20085867050668918)],
'mileniotv': [(1, 0.039022057375894988),
(6, 0.017450507926660058),
(71, 0.78397975298465861),
(86, 0.13246205685429896)],
'nacholozano': [(1, 0.098837841339753346),
(6, 0.054047175081347057),
(12, 0.017580950869763981),
(45, 0.1089031748516411),
(71, 0.23679940707308059),
(86, 0.049711525302241211),
(89, 0.1869774467319846),
(99, 0.23384306688405571)],
'nexosmexico': [(1, 0.064240548722539703),
(6, 0.13205860437424252),
(45, 0.080808518638669974),
(71, 0.15180904003761916),
(86, 0.1577241608612778),
(89, 0.15287260973389105),
(99, 0.25190552665531663)],
'nytimes': [(12, 0.089510816509087224),
(21, 0.014292735758127515),
(45, 0.062051740514533674),
(46, 0.020322342053740994),
(68, 0.3915563931717298),
(71, 0.01954945014208645),
(86, 0.037030664480680264),
(89, 0.30371253204453952),
(90, 0.039665018524677007)],
'panchogarfias': [(1, 0.079089502637976997),
(6, 0.17192243309695185),
(43, 0.072742309551877701),
(46, 0.07274230927871321),
(63, 0.24615930051937293),
(71, 0.094957790972933803),
(86, 0.1908478544363211)],
'politicomx': [(1, 0.19066488087875888),
(6, 0.10341714647110235),
(12, 0.037103966876039764),
(25, 0.10117370528848864),
(43, 0.033945670659564171),
(45, 0.070075815867427671),
(71, 0.29791038547994819),
(86, 0.13957489537920309),
(89, 0.025709421330301258)],
'puigcarlos': [(1, 0.11966943083944279),
(6, 0.030200900812886677),
(12, 0.021355666877215546),
(14, 0.011040766991108937),
(45, 0.071458016324824333),
(71, 0.15725998531988222),
(86, 0.17050057006104599),
(87, 0.25437635151736632),
(89, 0.13177442305846024)],
'revistaproceso': [(1, 0.18537577986638426),
(6, 0.069857428157474352),
(14, 0.017984915735720027),
(29, 0.077662180383643545),
(43, 0.04785225358813306),
(45, 0.082372401643873897),
(46, 0.01713218126467423),
(71, 0.23300514608610162),
(86, 0.24519537960496138),
(89, 0.014420353281015574)],
'rivapa': [(1, 0.069521162366390638),
(6, 0.1026457601338676),
(43, 0.010634129360831669),
(45, 0.090305471492817355),
(68, 0.21523738490028682),
(71, 0.14344198013323314),
(86, 0.048317970906651721),
(89, 0.23133810410055552),
(90, 0.032704568743871523),
(98, 0.041728779025505251)],
'sacroprofano': [(1, 0.089116389867508999),
(6, 0.086921477724825211),
(23, 0.021389345575877416),
(43, 0.019551819949925157),
(45, 0.069906500320912029),
(46, 0.050290074656971356),
(56, 0.16534541204965558),
(71, 0.35888928541427201),
(86, 0.10914119594951259)],
'sdpnoticias': [(1, 0.35901931427491535),
(6, 0.08871905137920244),
(43, 0.076813329845745223),
(45, 0.036024183857535884),
(69, 0.055974760200399133),
(71, 0.20865612157948241),
(86, 0.17199768539870544)],
'sergioaguayo': [(1, 0.14946700304479971),
(6, 0.1148686813105384),
(14, 0.020983112522594719),
(26, 0.01867541997341262),
(45, 0.01122986245799415),
(54, 0.40890898945912557),
(65, 0.022601946339504183),
(71, 0.12292880087016432),
(89, 0.096256632512536744)],
'sopitas': [(1, 0.027471101641889789),
(6, 0.0603386940924346),
(14, 0.01928970197158978),
(43, 0.038098642712066422),
(45, 0.032853054301943477),
(52, 0.078660739678279953),
(71, 0.23114982407346471),
(86, 0.46828408989903492),
(89, 0.036500145825901345)],
'soyfdelrincon': [(1, 0.067709652148035204),
(6, 0.035250055784691058),
(14, 0.011566032118559921),
(21, 0.15239108804905716),
(42, 0.34263593141551213),
(45, 0.019506534248790099),
(71, 0.17997335566509079),
(86, 0.1286313132937644),
(89, 0.03611674564185953)],
'warkentin': [(1, 0.078178114889964234),
(6, 0.078250526276712695),
(19, 0.30273842551604624),
(43, 0.079568961421160989),
(45, 0.016924462857458095),
(71, 0.079220661753635707),
(80, 0.031607356478820854),
(86, 0.12616699127477674),
(89, 0.20461847064593858)]}
In [5]:
%%time
from sklearn.manifold import TSNE
tsne = TSNE(n_components=2, random_state=0)
smallest_author = 0 # Ignore authors with documents less than this.
authors = [model.author2id[a] for a in model.author2id.keys() if len(model.author2doc[a]) >= smallest_author]
_ = tsne.fit_transform(model.state.gamma[authors, :]) # Result stored in tsne.embedding_
CPU times: user 1.1 s, sys: 24 ms, total: 1.13 s
Wall time: 596 ms
In [6]:
from bokeh.io import output_file
output_file('grafica.html')
In [7]:
from bokeh.models import HoverTool
from bokeh.plotting import figure, show, ColumnDataSource
x = tsne.embedding_[:, 0]
y = tsne.embedding_[:, 1]
author_names = [model.id2author[a] for a in authors]
scale = 0.01
author_sizes = [len(model.author2doc[a]) for a in author_names]
radii = [size * scale for size in author_sizes]
source = ColumnDataSource(
data=dict(
x=x,
y=y,
author_names=author_names,
author_sizes=author_sizes,
radii=radii,
)
)
hover = HoverTool(
tooltips=[
("author", "@author_names"),
("size", "@author_sizes"),
]
)
p = figure(tools=[hover, 'crosshair,pan,wheel_zoom,box_zoom,reset,save,lasso_select'])
p.scatter('x', 'y', radius='radii', source=source, fill_alpha=0.6, line_color=None)
show(p)
In [8]:
from gensim.similarities import MatrixSimilarity
index = MatrixSimilarity(model[list(model.id2author.values())])
In [9]:
from gensim import matutils
import pandas as pd
author_vecs = [model.get_author_topics(author) for author in model.id2author.values()]
def similarity(vec1, vec2):
dist = matutils.hellinger(matutils.sparse2full(vec1, model.num_topics), \
matutils.sparse2full(vec2, model.num_topics))
sim = 1.0 / (1.0 + dist)
return sim
def get_sims(vec):
sims = [similarity(vec, vec2) for vec2 in author_vecs]
return sims
def get_table(name, top_n=10, smallest_author=1):
sims = get_sims(model.get_author_topics(name))
table = []
for elem in enumerate(sims):
author_name = model.id2author[elem[0]]
sim = elem[1]
author_size = len(model.author2doc[author_name])
if author_size >= smallest_author:
table.append((author_name, sim, author_size))
df = pd.DataFrame(table, columns=['Author', 'Score', 'Size'])
df = df.sort_values('Score', ascending=False)[:top_n]
return df
In [10]:
get_table('Pajaropolitico',top_n=136)
Out[10]:
Author
Score
Size
43
Pajaropolitico
1.000000
726
111
sdpnoticias
0.776769
53
77
elsolde_mexico
0.723255
721
93
lacronicadehoy
0.719705
699
96
lopezdoriga
0.719275
658
6
AztecaNoticias
0.718762
197
35
MarioBeteta
0.717402
439
39
NoticiasMVS
0.714790
1040
108
revistaproceso
0.712646
386
49
Reforma
0.704470
827
73
diario24horas
0.702018
1099
5
AristeguiOnline
0.701630
604
38
NTelevisa_com
0.700831
1205
4
AnaPOrdorica
0.700791
46
40
Notimex
0.699078
865
19
El_Universal_Mx
0.698804
1354
106
politicomx
0.698494
352
30
JoseCardenas1
0.696553
313
44
PaolaRojas
0.696436
53
66
alvaro_delgado
0.696098
29
31
LaRazon_mx
0.694148
624
25
Foro_TV
0.692183
1039
90
julioastillero
0.689855
156
47
PublimetroMX
0.688801
749
0
ADNPolitico
0.688771
313
57
SinEmbargoMX
0.686000
935
76
eleconomista
0.685202
420
36
MexicanTimes
0.683557
353
21
Excelsior
0.683493
647
22
ExpansionMx
0.681674
1073
...
...
...
...
18
ElHuffPost
0.627080
1092
97
lydiacachosi
0.627069
54
63
YuririaSierra
0.626882
49
101
mileniotv
0.626031
122
46
Pizu
0.622440
42
3
Amsalazar
0.622039
30
79
esquivelgerardo
0.621907
13
54
SalCamarena
0.620386
11
84
jairocalixto
0.620270
94
105
panchogarfias
0.620264
2
32
LeonKrauze
0.620151
82
14
E_Q_
0.618054
9
100
maurimm
0.616878
1
80
estarc62
0.611935
11
114
soyfdelrincon
0.609417
21
98
macariomx
0.605256
350
2
Adela_Micha
0.598946
32
112
sergioaguayo
0.589735
14
89
jshm00
0.586475
9
12
DeniseMaerker
0.576207
358
13
DiegoEOsorno
0.574173
5
83
informador
0.571574
209
37
Milenio
0.564325
803
72
caudillomx
0.563151
1
104
nytimes
0.561261
545
91
karlaiberia
0.542091
47
56
SergioSarmiento
0.541619
14
7
Canal22
0.522724
281
85
javieraparicio
0.501041
9
99
mariocampos
0.500708
12
116 rows × 3 columns
In [ ]:
Content source: jadm333/aut-top
Similar notebooks: