-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathldavis_vis_2.html
41 lines (35 loc) · 18.5 KB
/
ldavis_vis_2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/bmabey/[email protected]/pyLDAvis/js/ldavis.v1.0.0.css">
<div id="ldavis_el914822284621902568769780995"></div>
<script type="text/javascript">
var ldavis_el914822284621902568769780995_data = {"mdsDat": {"x": [0.20413452761685325, -0.20413452761685325], "y": [0.0, 0.0], "topics": [1, 2], "cluster": [1, 1], "Freq": [54.8961573655533, 45.1038426344467]}, "tinfo": {"Term": ["kill", "attack", "syria", "polic", "isi", "south", "new", "forc", "russia", "world", "turkey", "korea", "islam", "protest", "north", "syrian", "bomb", "arrest", "minist", "death", "strike", "pakistan", "saudi", "citi", "air", "dead", "iraq", "deal", "iran", "china", "deal", "minist", "nuclear", "vote", "elect", "climat", "world", "billion", "global", "putin", "chang", "european", "law", "bank", "obama", "win", "trade", "compani", "prime", "brexit", "scientist", "tax", "studi", "sanction", "fund", "venezuela", "record", "talk", "energi", "data", "million", "power", "rule", "right", "germani", "europ", "japan", "crisi", "parti", "new", "russia", "oil", "iran", "presid", "nation", "china", "countri", "ukrain", "human", "ban", "say", "govern", "plan", "year", "call", "india", "warn", "russian", "state", "report", "kill", "attack", "polic", "isi", "bomb", "syrian", "korea", "dead", "north", "suspect", "milit", "rebel", "arrest", "death", "armi", "shoot", "soldier", "border", "troop", "yemen", "iraqi", "turkish", "south", "suicid", "terrorist", "fighter", "air", "aleppo", "prison", "crash", "syria", "forc", "islam", "protest", "strike", "pakistan", "citi", "iraq", "man", "near", "die", "turkey", "saudi", "terror", "militari", "state", "say", "peopl", "year", "group", "russian"], "Freq": [30265.0, 26965.0, 20577.0, 17507.0, 17171.0, 14274.0, 23674.0, 13957.0, 22574.0, 17598.0, 14182.0, 12689.0, 11983.0, 11901.0, 11773.0, 11699.0, 10602.0, 10036.0, 13060.0, 9470.0, 9245.0, 8520.0, 10418.0, 8088.0, 8060.0, 8020.0, 8027.0, 10301.0, 12513.0, 31963.0, 10300.55847667965, 13059.564166993774, 8425.101724234522, 6977.779993813416, 7201.706454492043, 5624.521947668612, 17596.557482317592, 5686.937298124038, 5768.18024380741, 6337.9131610159275, 5492.368705186526, 5537.337450294688, 6505.565931658593, 7524.252368233396, 6050.568409725578, 5306.982346917704, 4605.254057436889, 4240.443862067374, 4591.424087844389, 5441.660913628453, 4010.284673523787, 3319.5117378231034, 3613.2674575378487, 3308.999139583894, 3441.2910801819776, 4250.326776851227, 4658.419172203473, 6732.704317174676, 2716.9603899446984, 2810.604085541453, 8900.196393481023, 6910.947273123601, 6540.734741201329, 9502.023395690992, 7326.243582716765, 6350.632047860608, 8510.150929662785, 5910.898508222656, 5634.954562329048, 23079.289813863823, 22011.907457322846, 6549.7725860386745, 12265.887414396633, 15625.686611239957, 8634.104507282827, 27631.329628043797, 10779.613980677206, 7620.787455224584, 6559.733687017508, 8113.925461237506, 27882.69494970093, 12094.058722075724, 8888.452287779886, 12066.733695404087, 7315.229813963372, 8229.113797228754, 7277.466181351991, 7812.228600362894, 8225.71194883721, 7143.722853341346, 30265.381870740184, 26964.406539678475, 17506.824699205667, 17170.65902589908, 10601.968143837737, 11698.670576986091, 12688.415590546367, 8019.515016656537, 11773.037684896848, 6767.099159775588, 5882.375522305416, 6402.986134942431, 10035.1962093033, 9469.177426701714, 5870.1990738015, 5228.065673902477, 4896.559205200094, 6960.604566083825, 5248.740925099637, 5290.852947781616, 4741.645205479884, 6719.0835089036245, 14273.053164337825, 4370.842911616984, 5299.951810740315, 4383.199033621219, 8059.033833859918, 4405.387480270394, 4775.521782517034, 4454.03666482705, 20544.600503825215, 13944.005515180925, 11981.09861375571, 11887.522685764108, 9242.640154935914, 8518.234997624362, 8085.925295912003, 8025.189745729675, 6964.727703724058, 6234.995350192042, 5898.129196362288, 13938.190985356852, 9915.99244083584, 8491.082147548523, 10856.725477045662, 12638.70067139192, 16953.06407963143, 9039.80304850281, 9233.200650710854, 7482.29568100359, 8068.623476215383], "Total": [30265.0, 26965.0, 20577.0, 17507.0, 17171.0, 14274.0, 23674.0, 13957.0, 22574.0, 17598.0, 14182.0, 12689.0, 11983.0, 11901.0, 11773.0, 11699.0, 10602.0, 10036.0, 13060.0, 9470.0, 9245.0, 8520.0, 10418.0, 8088.0, 8060.0, 8020.0, 8027.0, 10301.0, 12513.0, 31963.0, 10301.168610710341, 13060.45960120867, 8425.767304204184, 6978.354022969548, 7202.310394820101, 5625.054766234628, 17598.24529879399, 5687.485091925401, 5768.744240960761, 6338.538169451175, 5492.931896534802, 5537.932506636814, 6506.299910778652, 7525.123838430289, 6051.2817880573175, 5307.662042657389, 4605.86997649905, 4241.019481261395, 4592.048374480191, 5442.427629165569, 4010.86412110313, 3320.0465559394315, 3613.876238705344, 3309.572840769549, 3441.925543276595, 4251.118363342661, 4659.292626026864, 6733.993344264652, 2717.485026494573, 2811.1666613291627, 8906.667323826963, 6912.678070197147, 6542.18062651155, 9543.630432770937, 7341.478135151294, 6354.758316903829, 8543.234820443811, 5913.122729247879, 5637.739408805266, 23674.129271961177, 22574.948459316725, 6574.506758521008, 12513.217971158218, 16592.785995237573, 8948.484307185392, 31963.52846166307, 11620.238172730176, 7975.477312584167, 6785.437999819662, 8885.998490440266, 44835.75902933236, 15758.0813433728, 11935.686548486854, 21299.93434611494, 9273.651523338804, 13180.223353894662, 9873.18044349726, 15880.852076578278, 20864.41262022913, 15141.793714670584, 30265.93413877806, 26965.02816291775, 17507.44367836876, 17171.318282885415, 10602.537438093836, 11699.309543413861, 12689.189857057674, 8020.071025696897, 11773.920942813005, 6767.693649913617, 5882.915037263149, 6403.574072776938, 10036.119524026511, 9470.070536366886, 5870.809140717214, 5228.620949757105, 4897.100577439786, 6961.37604297884, 5249.326083264311, 5291.483002473958, 4742.215821042716, 6719.9092995393585, 14274.882279385, 4371.406453418512, 5300.6431428654, 4383.771394495202, 8060.171267485743, 4406.033787551168, 4776.224661896849, 4454.697913665093, 20577.184998441528, 13957.198402322156, 11983.281589029604, 11901.718931983118, 9245.028218019477, 8520.065043104341, 8088.382043103474, 8027.111575092797, 6966.819190583175, 6236.043724240808, 5899.376050480313, 14182.016113499112, 10418.483844878203, 8823.565234596968, 12143.791869386696, 20864.41262022913, 44835.75902933236, 13088.548739549526, 21299.93434611494, 9659.507409732625, 15880.852076578278], "Category": ["Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Default", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2"], "logprob": [30.0, 29.0, 28.0, 27.0, 26.0, 25.0, 24.0, 23.0, 22.0, 21.0, 20.0, 19.0, 18.0, 17.0, 16.0, 15.0, 14.0, 13.0, 12.0, 11.0, 10.0, 9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0, -5.5207, -5.2834, -5.7217, -5.9102, -5.8786, -6.1258, -4.9852, -6.1147, -6.1006, -6.0064, -6.1496, -6.1414, -5.9803, -5.8348, -6.0528, -6.1839, -6.3257, -6.4083, -6.3287, -6.1588, -6.4641, -6.6531, -6.5683, -6.6563, -6.6171, -6.4059, -6.3142, -5.9459, -6.8534, -6.8195, -5.6668, -5.9198, -5.9749, -5.6014, -5.8615, -6.0044, -5.7117, -6.0761, -6.1239, -4.714, -4.7613, -5.9735, -5.3461, -5.104, -5.6972, -4.534, -5.4753, -5.822, -5.972, -5.7593, -4.5249, -5.3602, -5.6682, -5.3625, -5.863, -5.7452, -5.8681, -5.7972, -5.7457, -5.8867, -4.2464, -4.3619, -4.7939, -4.8132, -5.2954, -5.197, -5.1158, -5.5746, -5.1906, -5.7444, -5.8845, -5.7997, -5.3503, -5.4084, -5.8866, -6.0024, -6.0679, -5.7162, -5.9985, -5.9905, -6.1001, -5.7515, -4.9981, -6.1815, -5.9887, -6.1787, -5.5696, -6.1736, -6.0929, -6.1626, -4.6338, -5.0214, -5.1731, -5.181, -5.4326, -5.5142, -5.5663, -5.5739, -5.7156, -5.8263, -5.8818, -5.0218, -5.3623, -5.5174, -5.2717, -5.1197, -4.826, -5.4548, -5.4336, -5.6439, -5.5685], "loglift": [30.0, 29.0, 28.0, 27.0, 26.0, 25.0, 24.0, 23.0, 22.0, 21.0, 20.0, 19.0, 18.0, 17.0, 16.0, 15.0, 14.0, 13.0, 12.0, 11.0, 10.0, 9.0, 8.0, 7.0, 6.0, 5.0, 4.0, 3.0, 2.0, 1.0, 0.5997, 0.5997, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5996, 0.5995, 0.5995, 0.5995, 0.5995, 0.5995, 0.5995, 0.599, 0.5995, 0.5995, 0.5954, 0.5976, 0.5991, 0.5958, 0.5994, 0.5992, 0.5743, 0.5745, 0.596, 0.5798, 0.5397, 0.564, 0.4541, 0.5246, 0.5542, 0.5659, 0.5088, 0.1247, 0.3351, 0.3049, 0.0315, 0.3625, 0.1287, 0.2947, -0.1097, -0.3311, -0.1515, 0.7962, 0.7962, 0.7962, 0.7962, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7961, 0.7946, 0.7953, 0.796, 0.795, 0.7959, 0.796, 0.7959, 0.796, 0.7959, 0.796, 0.796, 0.7789, 0.7468, 0.7578, 0.6842, 0.2949, -0.1764, 0.4261, -0.0397, 0.5408, 0.1191]}, "token.table": {"Topic": [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2], "Freq": [0.00012406684260344954, 0.9998546845411999, 0.00022696149149500523, 0.999765370035498, 0.00017033427182370193, 0.9998621756051305, 9.964010468448446e-05, 0.9998884505088016, 3.708507159563059e-05, 0.9999618705045832, 0.9131219196952601, 0.08687825018544995, 0.999850655158052, 0.00013288817851648751, 0.9999147088884522, 0.00017582463669570111, 9.431704493747902e-05, 0.9999493104271526, 0.00014364976030975773, 0.9999459815162235, 0.9999214267612347, 0.00018374153376722434, 0.7887939267062702, 0.21113581797551295, 0.999830346242707, 0.00018205213879146157, 0.8644539989738778, 0.13552946775559474, 0.0002472682409586837, 0.9997054981959581, 0.9999902638753037, 0.0001777760469111651, 0.999759614105547, 0.000235792361817346, 0.9276918286664719, 0.07237373171692978, 0.00022448211290207378, 0.9998433308658365, 0.9996410138356542, 0.0003382307608985465, 0.9999407145327044, 0.00035572419584941456, 0.00012468717506315425, 0.999991144006497, 0.9999836318852051, 9.707636461364966e-05, 0.0001055958343879075, 0.9998869558190961, 0.00016950945175271245, 0.9997667464374981, 0.9999569034374964, 0.00013884433538426775, 0.9998215164058517, 0.00036798730820973563, 0.9994085822439805, 0.000629449587305294, 0.9998316146620249, 0.0001805728038038694, 0.00022811408488492853, 0.9998240340506417, 0.0009314190158561549, 0.9990543659306326, 0.9997310972404958, 0.00029053504714922866, 0.9978916868147868, 0.002043185271938548, 0.9998709873536294, 0.0001733479520377305, 0.7674792213892359, 0.23251561660080702, 0.22537381127804934, 0.7745736591558867, 0.9667762051873949, 0.033306619264077936, 0.624344503051869, 0.3756385508093089, 0.9802434536241571, 0.019739127102981154, 0.00024915562482098416, 0.9997369445941989, 0.00021087188726474294, 0.999954489409411, 5.823664692050441e-05, 0.9999814642719812, 0.00016689919077182916, 0.9998096023186426, 0.9961098083873007, 0.0038627054849331285, 3.304044723730353e-05, 0.9999691356369912, 7.880723759868753e-05, 0.9999062306521475, 0.9999539045566966, 0.00015369718791218823, 0.00028707505466818136, 0.9997388778819415, 0.0001699837569752189, 0.9998444585282376, 0.10598007721495956, 0.8940370616338895, 0.9992514232782528, 0.0006736526449066873, 0.9999648097216558, 7.656698389905481e-05, 0.9648561369289245, 0.035089741370822596, 0.00016035808025411858, 0.9998326303844294, 0.9748616194021535, 0.02513292012410769, 8.493347329722104e-05, 0.9999217811281833, 0.9999089336108533, 0.00011868355295084312, 0.9999534333274855, 0.0001652542444765304, 0.9962724567148333, 0.00380256662868257, 0.00023473999199321688, 0.9997576258991107, 0.9995140944611616, 0.0005321281780627302, 0.3093543891359919, 0.6906800883648719, 0.7446576251725356, 0.255284854174248, 5.711856158849423e-05, 0.9999746577297686, 0.999757247454589, 0.00028932346909407876, 0.9417345588911314, 0.05827833856698606, 0.9997716978579717, 0.0002177677407662757, 0.00020937038577302933, 0.9999529624519882, 0.0011763006738781435, 0.998847315075955, 0.9999150956519014, 0.0001577650829365575, 0.0001561627910655753, 0.9999103511928786, 0.9997225703275979, 0.00021462485408492871, 0.4718067181881047, 0.528206905384723, 0.9956378829771125, 0.004400840989795698, 0.9998195362404447, 0.00015285423272289324, 0.9750631342378815, 0.02493914885407629, 0.49191315190961654, 0.5080961626675238, 0.999826913986454, 0.000302153796913404, 0.04818359441491927, 0.9517699645783655, 0.6218920032503172, 0.3781133712693264, 0.9997845548796871, 0.0002493228316408197, 0.00019125501917411988, 0.9998812402422986, 0.00020420246310783388, 0.9999794618390625, 0.0001401062342131038, 0.9998681404618154, 0.39425984089408134, 0.6057683113372592, 0.00021633249275559825, 0.9997806152699973, 0.9997575349437927, 0.00027671119151502705, 0.00022875932738260555, 0.9999070199893689, 0.00014776082543463886, 0.9998975057162013, 0.0016037179041982347, 0.9984358891440221, 8.54751296466851e-05, 0.9999735417365689, 0.99985248808339, 0.00014850029527452695, 0.9999859773233155, 0.0003012005955793119, 0.037626513905993086, 0.9623094264330944, 0.00018865635226660894, 0.9998786670130274, 0.9998111157059386, 0.00021711424879607786, 0.00019050064410899517, 0.9999378809281156, 0.017204888081303847, 0.9827939757262829, 0.00014881153233251953, 0.9998646857421988, 0.9555540942954158, 0.04451144252393027, 0.9997369249107942, 0.00023523221762606922, 0.9999492684136714, 0.00014330026775776316, 0.737047199901307, 0.262934523971938, 0.9998752666141763, 0.00018840687141778335, 0.9999292373317427, 0.0001136476941901168, 0.5665275678279729, 0.4334755145235496, 0.00018898293720918393, 0.9999087207737922], "Term": ["air", "air", "aleppo", "aleppo", "armi", "armi", "arrest", "arrest", "attack", "attack", "ban", "ban", "bank", "bank", "billion", "billion", "bomb", "bomb", "border", "border", "brexit", "brexit", "call", "call", "chang", "chang", "china", "china", "citi", "citi", "climat", "climat", "compani", "compani", "countri", "countri", "crash", "crash", "crisi", "crisi", "data", "data", "dead", "dead", "deal", "deal", "death", "death", "die", "die", "elect", "elect", "energi", "energi", "europ", "europ", "european", "european", "fighter", "fighter", "forc", "forc", "fund", "fund", "germani", "germani", "global", "global", "govern", "govern", "group", "group", "human", "human", "india", "india", "iran", "iran", "iraq", "iraq", "iraqi", "iraqi", "isi", "isi", "islam", "islam", "japan", "japan", "kill", "kill", "korea", "korea", "law", "law", "man", "man", "milit", "milit", "militari", "militari", "million", "million", "minist", "minist", "nation", "nation", "near", "near", "new", "new", "north", "north", "nuclear", "nuclear", "obama", "obama", "oil", "oil", "pakistan", "pakistan", "parti", "parti", "peopl", "peopl", "plan", "plan", "polic", "polic", "power", "power", "presid", "presid", "prime", "prime", "prison", "prison", "protest", "protest", "putin", "putin", "rebel", "rebel", "record", "record", "report", "report", "right", "right", "rule", "rule", "russia", "russia", "russian", "russian", "sanction", "sanction", "saudi", "saudi", "say", "say", "scientist", "scientist", "shoot", "shoot", "soldier", "soldier", "south", "south", "state", "state", "strike", "strike", "studi", "studi", "suicid", "suicid", "suspect", "suspect", "syria", "syria", "syrian", "syrian", "talk", "talk", "tax", "tax", "terror", "terror", "terrorist", "terrorist", "trade", "trade", "troop", "troop", "turkey", "turkey", "turkish", "turkish", "ukrain", "ukrain", "venezuela", "venezuela", "vote", "vote", "warn", "warn", "win", "win", "world", "world", "year", "year", "yemen", "yemen"]}, "R": 30, "lambda.step": 0.01, "plot.opts": {"xlab": "PC1", "ylab": "PC2"}, "topic.order": [1, 2]};
function LDAvis_load_lib(url, callback){
var s = document.createElement('script');
s.src = url;
s.async = true;
s.onreadystatechange = s.onload = callback;
s.onerror = function(){console.warn("failed to load library " + url);};
document.getElementsByTagName("head")[0].appendChild(s);
}
if(typeof(LDAvis) !== "undefined"){
// already loaded: just create the visualization
!function(LDAvis){
new LDAvis("#" + "ldavis_el914822284621902568769780995", ldavis_el914822284621902568769780995_data);
}(LDAvis);
}else if(typeof define === "function" && define.amd){
// require.js is available: use it to load d3/LDAvis
require.config({paths: {d3: "https://d3js.org/d3.v5"}});
require(["d3"], function(d3){
window.d3 = d3;
LDAvis_load_lib("https://cdn.jsdelivr.net/gh/bmabey/[email protected]/pyLDAvis/js/ldavis.v3.0.0.js", function(){
new LDAvis("#" + "ldavis_el914822284621902568769780995", ldavis_el914822284621902568769780995_data);
});
});
}else{
// require.js not available: dynamically load d3 & LDAvis
LDAvis_load_lib("https://d3js.org/d3.v5.js", function(){
LDAvis_load_lib("https://cdn.jsdelivr.net/gh/bmabey/[email protected]/pyLDAvis/js/ldavis.v3.0.0.js", function(){
new LDAvis("#" + "ldavis_el914822284621902568769780995", ldavis_el914822284621902568769780995_data);
})
});
}
</script>