-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyLDAVis.html
41 lines (35 loc) · 14.2 KB
/
pyLDAVis.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.rawgit.com/bmabey/pyLDAvis/files/ldavis.v1.0.0.css">
<div id="ldavis_el1301406365089008322196454229"></div>
<script type="text/javascript">
var ldavis_el1301406365089008322196454229_data = {"mdsDat": {"x": [-10.878067970275879, -60.88402557373047, -2.3361191749572754, -61.385318756103516, -28.737743377685547, 1.0666056871414185, 45.14072036743164, -140.7959747314453, 61.531681060791016, -72.56305694580078, 15.984491348266602, -160.85162353515625, 85.96183013916016, -99.02083587646484, -176.76412963867188, -117.18988037109375, 108.82991790771484, 47.588096618652344, -106.46783447265625, -50.61380386352539], "y": [10.538727760314941, -75.5918197631836, -53.2890739440918, -12.914633750915527, 126.2969970703125, -123.55281066894531, -7.947869300842285, -98.53054809570312, -83.24056243896484, -140.39688110351562, 63.57818603515625, 68.94514465332031, 51.922935485839844, 109.93634796142578, -8.681683540344238, -37.42020034790039, -22.946203231811523, 121.934814453125, 30.176889419555664, 59.32884216308594], "topics": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "cluster": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "Freq": [5.157591436132619, 5.035660441159249, 5.0303836747595945, 5.025106908366498, 5.016437934998161, 5.012103448313509, 5.0032460190043455, 4.999401517770972, 4.998486160336514, 4.998346164490609, 4.997457729331651, 4.9942001337492234, 4.991184838665654, 4.974977627584436, 4.9749560897620215, 4.969700861189215, 4.969512405245526, 4.962351079423272, 4.960654975937287, 4.928240553779625]}, "tinfo": {"Term": ["city", "people", "ireland", "road", "19", "road", "19", "covid", "east", "galway2020", "calls", "minister", "storm", "school", "concerns", "plan", "closed", "area", "coming", "service", "traffic", "funding", "country", "social", "count", "great", "community", "just", "health", "place", "county", "meeting", "oranmore", "taoiseach", "best", "centre", "athenry", "gardai", "ballinasloe", "nuig", "warning", "major", "tomorrow", "gbayfm", "live", "public", "ctribune", "council", "ge2020", "brexit", "city", "cases", "today", "dublin", "galwaycoco", "ireland", "man", "year", "councillor", "tuamherald", "work", "number", "years", "ahead", "hse", "people", "water", "day", "expected", "crash", "following", "irish", "morning", "euro", "provision", "hospital", "support", "million", "need", "works", "time", "housing", "high", "2019", "direct", "2020", "services", "don", "home", "children", "local", "election", "uk", "died", "court", "coronavirus", "confirmed", "second", "development", "deal", "total", "irishtimes", "think", "wind", "vote"], "Freq": [350.0, 213.0, 153.0, 154.0, 151.0, 153.71641462678733, 150.32495078246524, 140.02274454896747, 60.51970976907653, 57.335556108616835, 90.89380136669399, 85.87266415897149, 59.00974514568113, 56.799361316902626, 46.17069877167697, 94.14148246626696, 40.94331231407289, 39.33628559864406, 38.60576499922019, 36.720042587470346, 79.5907785686568, 76.02719726470754, 55.901117347767475, 52.02921037097129, 51.65623144841735, 84.32840686173267, 78.45737562803171, 74.2440462463192, 69.8406784663971, 66.99397978716559, 93.49968622509812, 65.58262258468969, 40.309626357339106, 39.236054202774994, 36.41917137447957, 82.08695717593372, 78.06925925956696, 61.34700890358183, 54.4425371249647, 48.806526619537834, 70.33488461897694, 67.5889307663818, 63.19000662842366, 34.48330212659977, 32.75457708825342, 118.83513127914564, 111.3988637762688, 104.46551789890421, 65.0368957010376, 49.20014352447652, 350.04838554075883, 101.3784418775519, 94.6628793865372, 57.99063415904561, 47.76564022543684, 152.64336189315648, 104.87636439761056, 68.85758117481438, 52.30510477886354, 43.03149503258372, 53.874736368362456, 53.46490770941193, 45.55751607226531, 44.50962458931987, 42.51016092808962, 212.85129293379714, 76.87811136241348, 72.91527454397766, 33.4442958843237, 33.22372040457748, 105.05433874402753, 93.88004412200067, 61.91068978095345, 47.58832054871468, 36.33188323281743, 71.58742513372768, 71.41741287661948, 54.89414980835333, 48.34849816721665, 47.43453500180581, 75.51169765074441, 47.88342221298683, 36.65729960868996, 36.21496198714195, 32.69368030732698, 78.28290907767474, 66.66628448855296, 56.11304467005592, 54.48940839458279, 35.850589553924785, 82.14734530332098, 52.51878556430384, 44.78757535327973, 39.553732323748605, 38.36395396601252, 94.74343417743808, 52.387617173449435, 50.024581154905455, 44.01404746241262, 36.466900168816174, 38.05488311143066, 30.324353751741288, 28.529327882481557, 27.01653657319509, 26.527595524378135], "Total": [350.0, 213.0, 153.0, 154.0, 151.0, 154.49259942622425, 151.10113558192106, 140.79892934839907, 61.295894568522165, 58.1117409080484, 91.6709173135982, 86.64978010587569, 59.786861092585326, 57.57647726380682, 46.947814718581164, 94.91851985535638, 41.720349703162306, 40.113322987733476, 39.38280238830961, 37.49707997655976, 80.36801838133414, 76.80443707738488, 56.678357160459655, 52.806450183710844, 52.43347126109468, 85.10576410827534, 79.23473287457438, 75.02140349286186, 70.61803571293976, 67.77133703370825, 94.27708781147122, 66.36002417106279, 41.08702794378389, 40.0134557891481, 37.19657296085267, 82.86424302140293, 78.84654510508096, 62.12429474905103, 55.2198229704339, 49.583812465050435, 71.1120001251391, 68.36604627254395, 63.96712213458582, 35.26041763276193, 33.53169259451492, 119.61224288365742, 112.17597538079701, 105.24262950341598, 65.81400730555963, 49.9772551290042, 350.8256848816387, 102.15574121843181, 95.44017872741712, 58.76793349994157, 48.54293956631675, 153.42059019989458, 105.65359270434865, 69.63480948155248, 53.08233308560162, 43.80872333943652, 54.651920619327385, 54.24209196037686, 46.33470032323024, 45.2868088402848, 43.28734517905455, 213.62852577682594, 77.65534420544225, 73.69250738701665, 34.22152872735247, 34.00095324763727, 105.83151329833336, 94.6572186763065, 62.687864335272224, 48.3654951030205, 37.109057787123255, 72.36454215063851, 72.19452989353032, 55.671266825381494, 49.12561518412747, 48.211652018716634, 76.28897861355081, 48.660703175793216, 37.43458057152074, 36.99224295008437, 33.470961270133365, 79.05999829592531, 67.44337370679328, 56.89013388829624, 55.266497612841434, 36.627678772189675, 82.9243940510939, 53.295834312109655, 45.56462410107511, 40.33078107152152, 39.14100271378543, 95.52040826559285, 53.164591261598105, 50.801555243071036, 44.79102155056128, 37.24387425713405, 38.831881702752405, 31.101352343063027, 29.306326473803296, 27.79353516451683, 27.304594115699874], "Category": ["Default", "Default", "Default", "Default", "Default", "Topic1", "Topic1", "Topic1", "Topic1", "Topic1", "Topic2", "Topic2", "Topic2", "Topic2", "Topic2", "Topic3", "Topic3", "Topic3", "Topic3", "Topic3", "Topic4", "Topic4", "Topic4", "Topic4", "Topic4", "Topic5", "Topic5", "Topic5", "Topic5", "Topic5", "Topic6", "Topic6", "Topic6", "Topic6", "Topic6", "Topic7", "Topic7", "Topic7", "Topic7", "Topic7", "Topic8", "Topic8", "Topic8", "Topic8", "Topic8", "Topic9", "Topic9", "Topic9", "Topic9", "Topic9", "Topic10", "Topic10", "Topic10", "Topic10", "Topic10", "Topic11", "Topic11", "Topic11", "Topic11", "Topic11", "Topic12", "Topic12", "Topic12", "Topic12", "Topic12", "Topic13", "Topic13", "Topic13", "Topic13", "Topic13", "Topic14", "Topic14", "Topic14", "Topic14", "Topic14", "Topic15", "Topic15", "Topic15", "Topic15", "Topic15", "Topic16", "Topic16", "Topic16", "Topic16", "Topic16", "Topic17", "Topic17", "Topic17", "Topic17", "Topic17", "Topic18", "Topic18", "Topic18", "Topic18", "Topic18", "Topic19", "Topic19", "Topic19", "Topic19", "Topic19", "Topic20", "Topic20", "Topic20", "Topic20", "Topic20"], "logprob": [5.0, 4.0, 3.0, 2.0, 1.0, -2.6971, -2.7194, -2.7904, -3.6292, -3.6833, -3.1986, -3.2554, -3.6306, -3.6688, -3.8759, -3.1624, -3.995, -4.0351, -4.0538, -4.1039, -3.3293, -3.3751, -3.6826, -3.7544, -3.7616, -3.2697, -3.3419, -3.3971, -3.4582, -3.4999, -3.1656, -3.5203, -4.007, -4.034, -4.1085, -3.294, -3.3442, -3.5853, -3.7047, -3.814, -3.4478, -3.4876, -3.5549, -4.1606, -4.212, -2.9231, -2.9878, -3.052, -3.5259, -3.805, -1.8428, -3.082, -3.1505, -3.6406, -3.8345, -2.6726, -3.0479, -3.4686, -3.7436, -3.9387, -3.7134, -3.721, -3.881, -3.9043, -3.9503, -2.3388, -3.3572, -3.4101, -4.1895, -4.1961, -3.0417, -3.1541, -3.5705, -3.8336, -4.1035, -3.4252, -3.4276, -3.6907, -3.8177, -3.8368, -3.3708, -3.8263, -4.0935, -4.1056, -4.2079, -3.3347, -3.4954, -3.6677, -3.6971, -4.1157, -3.2851, -3.7324, -3.8917, -4.016, -4.0465, -3.1421, -3.7346, -3.7808, -3.9088, -4.0969, -4.0477, -4.2748, -4.3358, -4.3903, -4.4085], "loglift": [5.0, 4.0, 3.0, 2.0, 1.0, 2.9597, 2.9596, 2.9592, 2.952, 2.9513, 2.9801, 2.9796, 2.9755, 2.975, 2.9719, 2.9815, 2.9709, 2.9701, 2.9697, 2.9687, 2.981, 2.9806, 2.9769, 2.9759, 2.9758, 2.9833, 2.9826, 2.982, 2.9814, 2.9809, 2.985, 2.9815, 2.9742, 2.9737, 2.9722, 2.9857, 2.9852, 2.9825, 2.9809, 2.9793, 2.9849, 2.9844, 2.9836, 2.9736, 2.9724, 2.9895, 2.9891, 2.9886, 2.9842, 2.9804, 2.9938, 2.9884, 2.9879, 2.9827, 2.9799, 2.9912, 2.9889, 2.985, 2.9815, 2.9783, 2.9826, 2.9825, 2.98, 2.9796, 2.9788, 2.9939, 2.9874, 2.9869, 2.9745, 2.9744, 2.9934, 2.9925, 2.9883, 2.9846, 2.9796, 2.99, 2.9899, 2.9867, 2.9848, 2.9845, 2.9916, 2.9857, 2.9808, 2.9806, 2.9783, 2.992, 2.9903, 2.9881, 2.9877, 2.9804, 2.9939, 2.9886, 2.9861, 2.9838, 2.9832, 2.9955, 2.9889, 2.9882, 2.9861, 2.9825, 2.99, 2.9849, 2.9833, 2.9818, 2.9813]}, "token.table": {"Topic": [1, 16, 17, 12, 3, 7, 7, 6, 9, 2, 10, 7, 17, 10, 3, 3, 5, 2, 19, 19, 9, 11, 4, 4, 6, 18, 1, 13, 9, 13, 19, 19, 18, 16, 17, 10, 1, 18, 14, 13, 14, 4, 1, 10, 7, 8, 9, 5, 5, 16, 17, 15, 16, 12, 11, 14, 20, 5, 8, 18, 8, 11, 6, 15, 2, 14, 15, 7, 12, 6, 13, 5, 3, 14, 9, 1, 2, 19, 3, 17, 4, 2, 15, 6, 20, 16, 10, 8, 20, 4, 11, 18, 20, 8, 13, 20, 12, 15, 11, 12], "Freq": [0.9927125922801284, 0.9731769995287051, 0.9865924826869122, 0.9936668348327147, 0.9722455557203793, 0.9892633836529838, 0.9779096906723691, 0.9678310966412955, 0.9804460023568391, 0.9926812414093878, 0.9886864780711582, 0.9895703745078598, 0.9828632664359213, 0.9976464525910715, 0.9827338527052734, 0.990279960665693, 0.9844167724206389, 0.9798113133856678, 0.9780946070690604, 0.9945518630516542, 0.9881927170645651, 0.9796102955034733, 0.9917329284010934, 0.9880314604296101, 0.9864538898992611, 0.9708489145735765, 0.9943257427304567, 0.9705610239705021, 0.9895166912807756, 0.9906027435953597, 0.9666019101947808, 0.9823397296337982, 0.9917982974112274, 0.9859292577129055, 0.9843534576655415, 0.9869327802730662, 0.9951726853714259, 0.9944492038462669, 0.9924430608589454, 0.964305255411453, 0.9921430463156151, 0.9895261640082804, 0.9808689106422137, 0.9888152721864936, 0.9819024947712874, 0.9642540356189423, 0.9876317012307065, 0.9870071772474949, 0.9912481888415581, 0.9883909325312074, 0.9770838090426205, 0.9949624202709711, 0.9864222435626065, 0.9933619126359917, 0.997258580485536, 0.993056856249348, 0.9645882812131583, 0.986385172160115, 0.9841435801960711, 0.9888525679123524, 0.9946457884797858, 0.9938138146785258, 0.9945746829426294, 0.9879423109323704, 0.9925010761125794, 0.9890271531409439, 0.9770870007447529, 0.9882257447334866, 0.9771009576606265, 0.9735432812207497, 0.9970578565079715, 0.9886185359848427, 0.9903230701789695, 0.9701135557392649, 0.9948814363070432, 0.9968115014696255, 0.9899876253080665, 0.9842218365316608, 0.9867435017107866, 0.993425985646554, 0.98472818792202, 0.9868388960683719, 0.9834540110546884, 0.9746721254347905, 0.989547428468146, 0.9962120529229437, 0.995387909648888, 0.9848809497392893, 0.9785773527762514, 0.9954208354424275, 0.9815396734305538, 0.9876082791811776, 0.988844583647382, 0.9843626937340777, 0.9915608614944968, 0.9714489301263874, 0.9880714051411245, 0.9748680667850533, 0.9908837334907816, 0.9927764651353009], "Term": ["19", "2019", "2020", "ahead", "area", "athenry", "ballinasloe", "best", "brexit", "calls", "cases", "centre", "children", "city", "closed", "coming", "community", "concerns", "confirmed", "coronavirus", "council", "councillor", "count", "country", "county", "court", "covid", "crash", "ctribune", "day", "deal", "development", "died", "direct", "don", "dublin", "east", "election", "euro", "expected", "following", "funding", "galway2020", "galwaycoco", "gardai", "gbayfm", "ge2020", "great", "health", "high", "home", "hospital", "housing", "hse", "ireland", "irish", "irishtimes", "just", "live", "local", "major", "man", "meeting", "million", "minister", "morning", "need", "nuig", "number", "oranmore", "people", "place", "plan", "provision", "public", "road", "school", "second", "service", "services", "social", "storm", "support", "taoiseach", "think", "time", "today", "tomorrow", "total", "traffic", "tuamherald", "uk", "vote", "warning", "water", "wind", "work", "works", "year", "years"]}, "R": 5, "lambda.step": 0.01, "plot.opts": {"xlab": "PC1", "ylab": "PC2"}, "topic.order": [20, 15, 5, 16, 11, 19, 13, 1, 14, 8, 12, 7, 2, 6, 4, 18, 10, 17, 9, 3]};
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_el1301406365089008322196454229", ldavis_el1301406365089008322196454229_data);
}(LDAvis);
}else if(typeof define === "function" && define.amd){
// require.js is available: use it to load d3/LDAvis
require.config({paths: {d3: "https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min"}});
require(["d3"], function(d3){
window.d3 = d3;
LDAvis_load_lib("https://cdn.rawgit.com/bmabey/pyLDAvis/files/ldavis.v1.0.0.js", function(){
new LDAvis("#" + "ldavis_el1301406365089008322196454229", ldavis_el1301406365089008322196454229_data);
});
});
}else{
// require.js not available: dynamically load d3 & LDAvis
LDAvis_load_lib("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js", function(){
LDAvis_load_lib("https://cdn.rawgit.com/bmabey/pyLDAvis/files/ldavis.v1.0.0.js", function(){
new LDAvis("#" + "ldavis_el1301406365089008322196454229", ldavis_el1301406365089008322196454229_data);
})
});
}
</script>