-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtopics.html
257 lines (214 loc) · 8.82 KB
/
topics.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!doctype html>
<head>
<title>Quintessence Alpha: Text Topics</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="./resources/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.3.1/css/ion.rangeSlider.min.css"/>
<link href="https://fonts.googleapis.com/css?family=Libre+Baskerville&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./style/top_documents.css">
<link rel="stylesheet" type="text/css" href="./style/style.css">
<link rel="stylesheet" type="text/css" href="./style/topics_style.css">
<link rel="stylesheet" type="text/css" href="./style/sidebar.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.3.1/js/ion.rangeSlider.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.js"></script>
<script src="./js/topics/utils.js"></script>
<script src="./js/topics/update_topics_info.js"></script>
<script src="./js/topics/topics.js"></script>
<script src="./js/topics/layouts.js"></script>
<script src="./js/topics/apply_subset_filter.js"></script>
<script src="./js/topics/init_subset_options.js"></script>
<script src="./js/topics/plot_topic_proportion.js"></script>
<script src="./js/topics/plot_topic_terms.js"></script>
<script src="./js/topics/plot_lda_pca.js"></script>
<script src="./js/documents/init_document_results.js"></script>
<script src="./js/documents/get_meta.js"></script>
<script src="./js/documents/get_full_document.js"></script>
<script src="./js/documents/get_truncated_document.js"></script>
<script>
$( function() {
$( "#categoryhover" ).selectmenu();
$( "#decade_dropdown" ).selectmenu();
});
</script>
<style>
#decade_dropdown
{
height: 50px;
overflow: auto;
}
.topic_terms .yaxislayer-above {
cursor: pointer;
pointer-events: all;
}
.topic_terms g.draglayer g.xy {
display: none;
}
</style>
</head>
<body>
<!-- navigation bar-->
<div id="nav-placeholder"></div>
<script>
$("#nav-placeholder").load("nav.html",function() {
$('a[href$="' + location.pathname.split("/")[1] + '"]').addClass('active');
});
</script>
<div class="text-block">
<h2> Text Topics </h2>
<p>
Explore broader themes in a corpus with our topic model. This model identifies common themes across texts by grouping words according to their co-occurrence with other words. If words co-occur in some texts and not others, the model will associate those words and documents with a common topic. Each topic identified in this corpus is represented below as a bubble, sized according to the prevalence of that topic. Click or hover on a bubble for more information.
</p>
</div>
<hr>
<ul id="tabs" class="button-tabs">
<li><a href="#topics-subset">Topic Model</a></li>
<li><a href="#topics-overtime"> Topics Over Time</a></li>
</ul>
<hr>
<div class="container" id="topics-subset">
<div class="text-block">
<p> Categories have all been identified and hand-tagged by the EEBO-TCP team. You can filter by any combination of parameters. </p>
<!-- Timeline-->
<div style="margin-bottom: 20px">
<h3 style="margin-top: 10px" class="selecter-title"> Date Range </h3>
<input type="text" id="date-range" class="js-range-slider" name="my_range" value="" />
</div>
<!-- /Timeline-->
<!-- /Keywords -->
<div class="subsetter" id="Keywords">
<h3 class="selecter-title"> Keywords </h3>
<select id="selected-keywords" class="ui fluid search dropdown" multiple="">
</select>
</div>
<!-- /Keywords -->
<!-- Authors -->
<div class="subsetter" id="Authors">
<h3 class="selecter-title"> Authors </h3>
<select class="ui fluid search dropdown" id="selected-authors" multiple="multiple">
</select>
</div>
<!-- /Authors -->
<!-- Locations -->
<div class="subsetter" id="Locations">
<h3 class="selecter-title"> Locations </h3>
<select class="ui fluid search dropdown" id="selected-locations" multiple="multiple">
</select>
</div>
<!-- /Locations -->
<div id="apply-filters">
<div id="status"></div>
<div id="ndocs">60327 results</div>
<button type="button" onclick="updateLdaPca()" class="subset_button"> Apply Filters </button>
</div>
</div> <!-- filter -->
<div class="controls" >
<!-- LDA PCA CONTROLS -->
<div class="lda_controls">
<div style="display: flex; flex-direction: row; height: 40px">
<form>
<label for="topic">Topic:</label>
<input name="topic" class="lda-input" id="topic-input" placeholder="25"/>
</form>
<button class="control_button" id="prev" style="margin-left: 0px" > ← </button>
<button class="control_button" id="next" style="margin-left: 10px; margin-right: 10px"> → </button>
<form>
<label for="term">Term:</label>
<input name="term" class="lda-input" id="term-input" placeholder="Start typing a word here"/>
</form>
<button class="control_button" id="reset-bubbles"> Reset</button>
</div>
<div id="categoryhover_wrapper" style="margin-left: 10px; height: 40px">
<label for="categoryhover"> Hover info:</label>
<select name="categoryhover" id="categoryhover">
<option value="topAuthors">Top Authors</option>
<option selected="selected" value="topKeywords">Top Keywords</option>
<option value="topLocations">Top Locations</option>
</select>
</div>
</div>
<!-- /LDA PCA CONTROLS -->
<!-- TOPICDETAILS CONTROLS -->
<ul id="topicdetails_tabs" class="topicdetails_tabs">
<li><a href="#topic_terms">Terms</a></li>
<li><a href="#topic_info">Info</a></li>
</ul>
<!-- /TOPICDETAILS CONTROLS -->
</div> <!-- CONTROLS i-->
<div class="ldavis_container">
<div id="ldapca-plot" class="ldapca"> </div>
<div class="topicdetails" style="border-left: 2px solid #ccc; display: flex; flex-direction: column; width: 550px;">
<h2 id="selected_topic"> </h2>
<div id="topic_terms" class="container_details topic_terms"> <div id="topic_terms_plot"> </div> </div>
<div id="topic_info" class="container_details topic_info">
<div style="margin: 20px;" id="topic_proportions_plot"> </div>
<div id="decade_dropdown_wrapper" style="margin-bottom: 20px;">
<select size="5" name="decade_dropdown" id="decade_dropdown">
<option selected="selected" value="full"> full </option>
<option value="1470"> 1470 </option>
<option value="1480"> 1480 </option>
<option value="1490"> 1490 </option>
<option value="1500"> 1500 </option>
<option value="1510"> 1510 </option>
<option value="1520"> 1520 </option>
<option value="1530"> 1530 </option>
<option value="1540"> 1540 </option>
<option value="1550"> 1550 </option>
<option value="1560"> 1560 </option>
<option value="1570"> 1570 </option>
<option value="1580"> 1580 </option>
<option value="1590"> 1590 </option>
<option value="1600"> 1600 </option>
<option value="1610"> 1610 </option>
<option value="1620"> 1620 </option>
<option value="1630"> 1630 </option>
<option value="1640"> 1640 </option>
<option value="1650"> 1650 </option>
<option value="1660"> 1660 </option>
<option value="1670"> 1670 </option>
<option value="1680"> 1680 </option>
<option value="1690"> 1690 </option>
<option value="1700"> 1700 </option>
</select>
</div>
<div id="info" style="display: flex; flex-direction: row">
<div>
<h3> Top Authors: </h3>
<div id="topAuthorsDecade"> </div>
</div>
<div>
<h3> Top Keywords: </h3>
<div id="topKeywordsDecade"> </div>
</div>
<div>
<h3> Top Locations: </h3>
<div id="topLocationsDecade"> </div>
</div>
</div>
</div>
</div>
<div class="overlay" id="overlay">
<div class="text">Loading Data</div>
</div>
</div>
</div>
<div style="margin: auto; height: 1300px; width: 1600px"class="container" id="topics-overtime">
<iframe style="border: none; width: 100%; min-height: 1300px;" src="overtimetopics.html"> </iframe>
</div>
<div class="text-block">
<div id="top_docs"></div>
<div id="hideme"></div>
</div>
<div style="display: none" id="topics"></div>
<div style="display: none" id="selectedTopic"></div>
<!--Footer -->
<div id="footer-placeholder"></div>
<script>
$("#footer-placeholder").load("footer.html");
</script>
<!-- Footer -->
</body>